Mac hacks

Chrome

To make Google Chrome use the system print dialog instead of it’s own version

defaults write com.google.Chrome DisablePrintPreview -boolean true

general

OSX Mountain Lion settings changes:

defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 0
defaults write NSGlobalDomain AppleFontSmoothing -int 2
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder QLEnableTextSelection -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.finder EmptyTrashSecurely -bool true
chflags nohidden ~/Library
defaults write com.apple.dock tilesize -int 36
defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write com.apple.dock "expose-group-by-app" -bool true
defaults write com.apple.dock itunes-notifications -bool true
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true

enable old AFP servers

sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "Cleartxt Passwrd" "MS2.0" "2-Way Randnum exchange"

Re-enabling Repeating Keys In Yosemite

defaults write -g ApplePressAndHoldEnabled -bool false

from http://jamesreubenknowles.com/re-enabling-key-repeats-in-yosemite-2196