Mac Stuff

Handy Mac commands:

Show Hidden Files

$ defaults write AppleShowAllFiles True
$ killall Finder

DNS Cache Clear

sudo dscacheutil -flushcache

Turn off Prefetch Cache

defaults write 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