$ pmset -g thermlog
Check the CPU speed limit line
$ afplay /System/Library/Sounds/Funk.aiff
Show hidden files in finder
$ defaults write com.apple.finder AppleShowAllFiles YES
$ killall Finder
$ defaults write -g ApplePressAndHoldEnabled -bool false
$ sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
$ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
Download Sierra (or current Mac OS) via the AppStore App. Cancel out of the installer window when it loads up after it downloads.
The installer app will be in the Applications directory.
After inserting the USB stick, run the following command on the terminal. Note this expects the USB drive to be named Untitled
:
$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app
You need to use the launchd agent for this