Skip to content

Instantly share code, notes, and snippets.

View johnsome's full-sized avatar

Mark Johnson johnsome

View GitHub Profile
@johnsome
johnsome / INSTALL
Created September 1, 2011 11:26 — forked from mat/INSTALL
Turn an Ubuntu 10.04 server into a StatsD/Graphite server
TODO:
- edit /opt/statsd/local.js
- correct the graphite host to localhost
- if desired, put 'debug: true' in there
- make the box accessible via the hostname 'graphite'
- patch graphite, like described in https://answers.launchpad.net/graphite/+question/152851
@johnsome
johnsome / gist:1054688
Created June 29, 2011 19:27 — forked from wayneeseguin/gist:296055
install ruby 1.9.2 and Rails 3.1 RC
This example shows how to setup an environment running Rails 3 under 1.9.2 with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.2
# Switch to 1.9.2-head and gemset rails31rc, create if it doesn't exist.
∴ rvm --create use 1.9.2@rails31rc
@johnsome
johnsome / nokogiri
Created April 19, 2011 17:36 — forked from fabioyamate/nokogiri
nokogiri installation from libxml2 and libxslt mac osx snow leopard
http://nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x
# using rvm with ruby-1.8.7-tv1_8_7_174
# latest version 2.7.7 2010-06-17
brew install libxml2
brew link libxml2 (FAILS) - so have to include below
# installing libxslt from source code
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
development: &global_settings
database: textual_development
host: 127.0.0.1
port: 27017
test:
database: textual_test
<<: *global_settings
production: