Skip to content

Instantly share code, notes, and snippets.

@jgeo
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save jgeo/f9d21fa013085bfee7f2 to your computer and use it in GitHub Desktop.

Select an option

Save jgeo/f9d21fa013085bfee7f2 to your computer and use it in GitHub Desktop.
Upgrade to Yosemite Script
echo 'Updating xcode command line tools'
xcode-select --install
echo 'Updating Homebrew'
brew uninstall postgresql
brew uninstall postgresql91
brew uninstall postgis
brew uninstall proj
brew uninstall geos
sudo brew prune
cd `brew --cellar`
git reset --hard HEAD
brew update
brew install proj
brew tap homebrew/versions
brew install postgresql91
brew upgrade
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
echo 'Reverting to Postgis 1.5.3 and Postgresql 9.1.13'
brew install https://gist.githubusercontent.com/jgeo/8e99d19b4bb25bd8c8f5/raw/postgis.rb
mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/
touch /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/.keep
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
brew install geos
echo 'Updating Vim'
sh ~/.vim/bin/upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment