Remove dock reveal animation

defaults write com.apple.dock autohide-time-modifier -int 0 && killall Dock

// Revert changes
defaults delete com.apple.dock autohide-time-modifier && killall Dock

Remove dock reveal delay

defaults write com.apple.Dock autohide-delay -int 0 && killall Dock

// Revert changes
defaults delete com.apple.Dock autohide-delay && killall Dock

Change screenshot filename

// Changing the name to 'screenshot'
defaults write com.apple.screencapture name "screenshot"

// Reverting back to 'Screen Shot'
defaults write com.apple.screencapture name "Screen Shot"

Change the screenshot file format

// You can replace 'jpg' with png, tiff, gif or pdf
defaults write com.apple.screencapture type jpg

// Reverting back to png
defaults write com.apple.screencapture type png

Change directory where screenshots are saved to

// Replace '~/Screenshots' with your directory
defaults write com.apple.screencapture location ~/Screenshots

// Reverting back to '~/Desktop' directory
defaults write com.apple.screencapture location ~/Desktop

Remove the shadow when taking a window screenshot

defaults write com.apple.screencapture disable-shadow -bool true && killall SystemUIServer

// Reverting changes
defaults write com.apple.screencapture disable-shadow -bool false && killall SystemUIServer

Disable popup showing accented characters when holding down a key

// You will need to restart the program in which you are typing for the command to take effect
defaults write -g ApplePressAndHoldEnabled -bool false
    
// Revert changes
defaults write -g ApplePressAndHoldEnabled -bool true

Hide QuickLook when changing programs

defaults write com.apple.Finder QLHidePanelOnDeactivate -bool yes && killall Finder

// Revert changes
defaults delete com.apple.Finder QLHidePanelOnDeactivate && killall Finder

Change Mac App Store update check frequency

// Change 1 to any number of days
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

// Reverting back to 7
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 7

Here you can download two scripts for macOS. The “apply_settings.sh” script is for applying all the changes mentioned above and the “revert_settings.sh” script is for reverting all those changes. Use at your own risk.

Show path in top of Finder

defaults write com.apple.finder _FXShowPosixPathInTitle -bool yes

// revert changes
defaults delete com.apple.finder _FXShowPosixPathInTitle

Add dock spaces

// remove by dragging space off dock like normal
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock