Skip verifying disk images
defaults write com.apple.frameworks.diskimages skip-verify true
Always hide the Desktop
defaults write com.apple.finder CreateDesktop false; killall Finder
Make terminal logins fast
touch ~/.hushlogin
Disable most animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g QLPanelAnimationDuration -float 0
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write com.apple.finder DisableAllAnimations -bool true
Increase the key repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
Disable save to iCloud by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
Prevent your MacBook from booting after opening the lid
sudo nvram AutoBoot=%00
To restore it to factory setting
sudo nvram AutoBoot=%03