m-cli is a macOS command line tool that lets you interact with utilities and applications entirely in Terminal. Gives you a bunch of shorthand CLI commands that you can use, such as m finder showdesktop YES, m battery status, m dns flush, etc. These replace a bunch of custom aliases you might have set up …
Tag Archives: macos
Inspecting Web Views in macOS
Authenticate with sudo
using Touch ID
Turns out it’s possible to authenticate with sudo using Touch ID, as per this (old) tweet by Cabel: Pro MacBook Pro Tip: have a Touch Bar with Touch ID? If you edit /etc/pam.d/sudo and add the following line to the top… auth sufficient pam_tid.so …you can now use your fingerprint to sudo! — Cabel (@cabel) …
Using the Numpad in vi
over SSH
One of the things that kept on bothering me when SSH’ing is that the keys of the numpad would not work in vi: when pressing any key on the numpad, another key would be sent somehow. Should’ve Google’d this a lot earlier because the fix is very simple: in the preferences of Terminal, go to …
Mirror Displays — A Mac app and command-line tool for fiddling with display mirroring
MirrorDisplays a simple application that toggles between mirrored and extended desktop modes. It’s the easiest way to turn on, or turn off display mirroring. Also comes with a (separately installable) CLI tool which makes this pretty interesting The command line tool is good for giving shell-scripts the power to control display mirroring and opens up …
macintosh.js
– A virtual Apple Macintosh with System 8, running in Electron.
Visualize your keystrokes with KeyCastr
Automatically Fix Bluetooth Audio Balance Drift in macOS with “Balance Lock”
It’s been over 10 years that I’ve been using macOS (then OS X) and every now and then I notice that the audio balance of my Bluetooth headset is off for no apparent reason. Hmm, why is the balance for my headphone suddenly off? Back in 2014 I was lucky enough to see this tweet …
Continue reading “Automatically Fix Bluetooth Audio Balance Drift in macOS with “Balance Lock””
Watch PIP YouTube videos on macOS with pipcorn
With pipcorn you can spawn a picture-in-picture YouTube player on your Mac without installing anything! Install it globally using npm, or run it directly using npx: npx pipcorn https://www.youtube.com/watch?v=dQw4w9WgXcQ Basically it’s a wrapper around ytdl (to get the MP4 URL) and open-pip-cli (to open a PIP player). Love the name, too. pipcorn Source (GitHub) →