Also worth mentioning is dotfiles (not specific to OS X). Basically various well known "power users" share their bash, homebrew, etc settings on github so that they can easily set up a new machine with minimum of fuss.
There are a lot of neat trick in those boilerplate files.
http://dotfiles.github.io/