OS X hacks
2015-03-19 [updated 2016-09-27]

Some useful customisations on Mac OS X 10.10 Yosemite.

defaults write ShowStatusBar -bool true
defaults write _FXShowPosixPathInTitle -bool true
chflags nohidden ~/Library
Adds disk usage and file path info to Finder windows, and makes the user Library folder always visible.
defaults write disable-shadow -bool true
defaults write type jpg
Screen grabs using command-shift-3 and command-shift-4 save as jpeg instead of the png default, and window shadows are disabled.
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
The save and print dialog boxes default to the expanded view.
defaults write DoNotOfferNewDisksForBackup -bool true
defaults write DSDontWriteNetworkStores true
Stops the OS from asking if you want to use external disks for Time Machine. Prevents network drives having invisible dot files written to them.
networksetup -listallnetworkservices
networksetup -setv6off "Wi-Fi"
Lists network services and disables IPv6 support on the Wi-Fi interface. Also has the effect of adding an “Off” option to the System Preferences > Network > Wi-Fi > Advanced... > TCP/IP > Configure IPv6 menu. This is useful if your VPN doesn’t support IPv6. Check your IPv6 address with or