Skip to content

Instantly share code, notes, and snippets.

View westwickfarrow's full-sized avatar

Westwick-Farrow westwickfarrow

View GitHub Profile
@westwickfarrow
westwickfarrow / gist:1850747
Created February 17, 2012 04:45
Ruby + zlipg + readline + ssl
Install pre-requisites
apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev
Download and install
cd /usr/local/src
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
tar zxvf ruby-1.8.6.tar.gz
@westwickfarrow
westwickfarrow / es.sh
Created July 13, 2012 10:07
Install ElasticSearch on Ubuntu 12.04
cd ~
sudo add-apt-repository ppa:dlecan/openjdk
sudo apt-get update
sudo apt-get install openjdk-7-jre -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.7.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
require 'capybara/rspec'
require 'capybara/poltergeist'
require 'csv'
require 'pry'
include Capybara::DSL
Capybara.register_driver :poltergeist do |app|