Skip to content

Instantly share code, notes, and snippets.

@anthonycrumley
Created November 5, 2010 20:49
Show Gist options
  • Save anthonycrumley/664844 to your computer and use it in GitHub Desktop.
Save anthonycrumley/664844 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -ex
# Snow Leopard Samba Fix
echo "[default]" > ~/Library/Preferences/nsmb.conf
echo "streams=no" >> ~/Library/Preferences/nsmb.conf
# Remove system gems
sudo rm -r /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
sudo gem update --system
sudo gem clean
# Install Homebrew
sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
# Install git
brew install git
# Install MacVim
brew install macvim
# Install Utillities
brew install wget proctools ack ctags-exuberant markdown
# Install NoSQL
brew install redis mongodb
# dotfiles
mkdir ~/commonthread
cd ~/commonthread
git clone http://github.com/commonthread/dotmatrix.git
ln -sf ~/commonthread/dotmatrix/.bash_profile ~/
ln -sf ~/commonthread/dotmatrix/.bashrc ~/
ln -sf ~/commonthread/dotmatrix/.alias ~/
ln -sf ~/commonthread/dotmatrix/.commonrc ~/
ln -sf ~/commonthread/dotmatrix/.vim ~/
ln -sf ~/commonthread/dotmatrix/.vimrc ~/
ln -sf ~/commonthread/dotmatrix/.rvmrc ~/
ln -sf ~/commonthread/dotmatrix/.gemrc ~/
sh ~/commonthread/dotmatrix/bin/vimbundles.sh
# install rvm
mkdir -p ~/.rvm/src/ && \
cd ~/.rvm/src && \
rm -rf ./rvm/ && \
git clone --depth 1 git://github.com/wayneeseguin/rvm.git && \
cd rvm && \
./install
source ~/.bashrc
# Install openssl
rvm package install openssl
# Install some rubies
rvm install ree -C --enable-shared=yes
rvm install ruby-1.8.7-p248 -C --enable-shared=yes
rvm use 1.8.7-p248 --default
# Install MySQL
brew install mysql
# Install global gems
rvm gemset use global
gem install mysql -- --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/bin/mysql_config
gem install bundler
# Install Growl
cd ~/Downloads
wget http://growl.cachefly.net/Growl-1.2.dmg
open Growl-1.2.dmg -W
cd /Volumes/Growl-1.2/Extras/growlnotify/
# Don't use the install shell script
# Use the following:
mkdir -p /usr/local/bin
echo "Creating /usr/local/bin"
mkdir -p /usr/local/man/man1
echo "Creating /usr/local/man/man1"
cp growlnotify /usr/local/bin/growlnotify
cp growlnotify.1 /usr/local/man/man1/growlnotify.1
# Generate ssh key
ssh-keygen -t rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment