Skip to content

Instantly share code, notes, and snippets.

@PaulusTM
Created January 31, 2012 15:00
Show Gist options
  • Save PaulusTM/1710927 to your computer and use it in GitHub Desktop.
Save PaulusTM/1710927 to your computer and use it in GitHub Desktop.
Developer workspace setup
#!/usr/bin/env bash
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Installing Homebrew, a good OS X package manager ..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew update
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
brew install imagemagick
echo "Installing xmlsec1"
brew install xmlsec1
echo "Installing git-flow"
brew install git-flow
echo "Installing Mysql ..."
brew install mysql
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql.server start
mysqladmin -u root password ''
echo "Installing RVM (Ruby Version Manager) ..."
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
source .profile
echo "Installing REE stable and making it the default Ruby ..."
rvm install ree
rvm use ree --default
echo "Iconv is required for Nokogiri ..."
rvm pkg install iconv
echo "Install POW"
curl get.pow.cx | sh
echo "Install base gems"
gem update --system
gem install powder --no-rdoc --no-ri
gem install bundler --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment