Hidden Features
The defaults
command in Terminal can modify hidden OS X features.
Commands
Reduce notification banner display time (requires restart)
defaults write com.apple.notificationcenterui bannerTime 1.5
Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
Remove duplicates in the “Open With” menu (also see lscleanup
alias)
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Fix dock stays open after switching spaces
defaults write com.apple.dock autohide-delay -int 0;
defaults write com.apple.dock autohide-time-modifier -float 1.0;
killall Dock
Disable shadow in screenshots of windows
defaults write com.apple.screencapture disable-shadow -bool true
Stop the Apache server built into macOS
sudo apachectl stop