Mac Terminal Tricks
//Autohide Dock Speed
$ defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -float 0.5
$ killall Dock
//Add spacers to your Dock
$ defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
$ killall Dock
//Changing screenshots from the default png to jpg format
$ defaults write com.apple.screencapture type jpg
//Change screenshots location
$ defaults write com.apple.screencapture /path/to/location
$ killall SystemUIServer
//Show Hidden Files and Folders
$ defaults write com.apple.finder AppleShowAllFiles -bool TRUE
$ killall Finder
//Check the Uptime Of Your Mac
$ uptime
//Prevent Mac From Sleeping with time param
$ caffeinate -u -t 600