Before upgrading to Yosemite, read this first, as your upgrade could potentially take a few hours if you have a large /usr
folder. After the upgrade finishes, log in to OS X and install all updates in the App Store. Once the updates are done, do the following:
xcode-select --install
Sign into Apple Developer and download Xcode 6.1 (not yet on the App Store)
mkdir /Library/Caches/Homebrew
brew update && brew upgrade && brew cleanup && brew prune
Note: These are handy aliases for making sure brew is always up to date:
alias update_all='brew update && brew upgrade && && brew prune && gem update --system'
alias cleanup_all='brew cleanup && brew cask cleanup'
alias update_and_clean='update_all && cleanup_all'
brew reinstall postgres
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mkdir /usr/local/var/postgres/pg_tblspc
mkdir /usr/local/var/postgres/pg_twophase
mkdir /usr/local/var/postgres/pg_stat_tmp
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
ARCHFLAGS="-arch x86_64" gem install pg
curl get.pow.cx/uninstall.sh | sh
curl get.pow.cx | sh
sudo pfctl -f /etc/pf.conf
sudo pfctl -e
Add this bash alias and run it if pow stops working:
alias restart_pow='sudo pfctl -d && sudo pfctl -f /etc/pf.conf && sudo pfctl -e'