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.