Mac Stuff

Handy Mac commands:

Make your media shortcuts work even when they're not the focused window, like it used to be:

  • Open System Preferences -> Keyboard -> Shortcuts -> Keyboard
  • Uncheck the F7 and F8 options

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