Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (51 sloc) 2.12 KB
#!/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 "Copying public key to clipboard. Paste it into your Github account ..."
# [[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
# open https://github.com/account/ssh
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 Redis, a good key-value database ..."
brew install redis
echo "Installing MongoDB ..."
brew install mongodb
mkdir -p ~/Library/LaunchAgents
cp `brew --prefix mongodb`/org.mongodb.mongod.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist
echo "Installing MySQL ..."
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir=`brew --prefix mysql` --datadir=/usr/local/var/mysql --tmpdir=/tmp
echo "Installing bash-completion ..."
brew install bash-completion
echo "Installing Git + gitflow ..."
brew install git
brew install git-flow
#echo "Installing MacVim ..."
# brew install macvim
echo "Installing Wget ..."
brew install wget
echo "Installing Amazon ec2 Tools ..."
brew install ec2-ami-tools
brew install ec2-api-tools
echo "Installing Amazon S3 s3cmd ..."
brew install s3cmd
echo "Installing Tree ..."
brew install tree
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing tmux, a good way to save project state and switch between projects ..."
brew install tmux
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
brew install imagemagick
echo "Installing ghostscript, for using with imagemagick"
brew install ghostscript
echo "Installing RVM (Ruby Version Manager) ..."
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.bash_profile
source ~/.bash_profile
bash < <(curl -s https://raw.github.com/BioData/laptop/master/ruby)