====== Mac OS Tricks ======
==== Change the hostname ====
sudo scutil --set HostName testhostname.local
hostname
==== Create a bootable OS X USB installation disk ====
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
==== F11 on a Mac for ESX Installs ====
* Fn+Ctrl+option+F11
* Or Go into the Mission Control settings and set 'Show Desktop' to be any other F- key besides F11. Go into the keyboard settings and check the box that says 'Use all F1, F2, etc. keys as standard function keys.
* Or if you are using VMware Fusion, you can send key using Virtual Machine -> Send Key -> F11.
==== Install Homebrew ====
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew doctor
brew update
==== Mount from directory to directory ====
brew install bindfs
# brew install pkg-config if needed
bindfs
==== Install useful unix utility ssh-copy-id ====
curl -L https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/install.sh | sh
==== Schedule tasks in Mac OS X ====
cat >> ~/me.hackerzhou.backup.plist <
Label
me.hackerzhou.backup
ProgramArguments
/Users/hackerzhou/bin/backup.sh
StartCalendarInterval
Minute
0
EOF
sudo cp /Users/hackerzhou/me.hackerzhou.backup.plist /Library/LaunchDaemons/
sudo launchctl load /Library/LaunchDaemons/me.hackerzhou.backup.plist
==== Use Time Machine via NFS ====
http://smekkley.wordpress.com/2014/01/18/time-machine-via-nfs-on-mavericks/
http://images.apple.com/business/docs/Autofs.pdf
http://tentacles666.wordpress.com/2013/10/27/nfs-mounts-in-os-x-mavericks/