Skip to content

Instantly share code, notes, and snippets.

@jeremiahshirk
Created August 7, 2012 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremiahshirk/3280439 to your computer and use it in GitHub Desktop.
Save jeremiahshirk/3280439 to your computer and use it in GitHub Desktop.
Prepare Gauntlt Getting Started environment
## shell script to prepare Gauntlt Getting Started environment
# required distro packages
sudo apt-get -y install nmap curl libcurl3-dev rbenv libyaml-dev
# rbenv ENV vars
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# download and build ruby
mkdir $HOME/tmp && cd $HOME/tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar xzvf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p194
make
make install
# use the new ruby
rbenv global 1.9.3-p194
echo ruby is `which ruby`
# gherkin syntax highlighting in vim for .attack files
mkdir -p ~/.vim/syntax
wget https://raw.github.com/tpope/vim-cucumber/master/syntax/cucumber.vim \
-O ~/.vim/syntax/gherkin.vim
echo "syn on" >> ~/.vimrc
echo "au Bufread,BufNewFile *.attack set filetype=gherkin" >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment