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.
- I have a modified version of Github review requests to notify me when I have PRs to review for work.
launchd.info is an excellent resource for using launchd and creating launchagents.
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.
In a finder or open-file window prompt (using the system control), use
command+shift+. to toggle showing hidden files.
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 com.apple.audio.coreaudiod && sudo launchctl start com.apple.audio.coreaudiod
Last updated: 2020-12-27 13:41:55 -0800