Skip to content

Instantly share code, notes, and snippets.

View raykrueger's full-sized avatar

Ray Krueger raykrueger

  • Chicago, IL, USA
View GitHub Profile
@kinsteronline
kinsteronline / install_ruby.sh
Created August 13, 2013 19:35
Install ruby 2.0 with checkinstall
sudo apt-get install checkinstall
./configure --disable-install-doc
make
sudo checkinstall --pkgname="ruby" --pkgversion="2.0.0-p247"
dpkg -r ruby
@jnunemaker
jnunemaker / gist:841656
Created February 24, 2011 02:38
all time views across system for http://gaug.es
# How we store all time views across the entire system for http://gauge.es.
# All in one document that gets incremented using MongoDB $inc modifier in
# every track. The $inc increments t, year.t, year.month.t, year.month.day.t
# so we get to the day numbers. These are in EST, as we are in EST and these
# stats are just for us. :) Nothing amazing, but thought I would share.
#
# >> pp View.all_time
{
"_id" => "all_time",
"t" => 502352,