The only desktop OS worth using. (iOS being the only mobile OS worth using).


BitBar is a really neat menubar app for macOS that lets you write simple command-line programs as separate menu bar apps.


LaunchD and LaunchAgents is an excellent resource for using launchd and creating launchagents.

Remotely shutting down

There’s essentially two ways to do this from a terminal: sudo shutdown -r now will reboot the machine, now. Apps don’t get the chance to stop this.

Alternatively, you can use applescript, with commands like:

  • osascript -e 'tell app "System Events" to shut down' will shutdown the machine.
  • osascript -e 'tell app "System Events" to restart' will reboot the machine.

All of these can be halted by other apps, though.

See this stackoverflow answer for other examples.

View Hidden Files in Finder

In a finder or open-file window prompt (using the system control), use command+shift+. to toggle showing hidden files.

Audio Skipping Glitch

Sometimes, the audio will “skip” when using headphones. Restarting coreaudio via launchctl seems to fix it. If not, then restart the machine and that sometimes helps.

sudo launchctl stop && sudo launchctl start

Last updated: 2020-12-27 13:41:55 -0800