Mac Stuff

Handy Mac commands:

Show Hidden Files

$ defaults write com.apple.finder AppleShowAllFiles True
$ killall Finder

DNS Cache Clear

sudo dscacheutil -flushcache

Turn off Prefetch Cache

defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false

Compact Sparseimages (example where "Media Store" is the name of the image)

hdiutil compact "Media Store.sparsebundle" -batteryallowed

Disable Time Machine Local Snapshots (Prevents a Mac's hard drive from filling up to 80% on just backups)

sudo tmutil disablelocal