Skip to content

Instantly share code, notes, and snippets.

View marcoshack's full-sized avatar

Marcos Hack marcoshack

  • Ontario, Canada
  • 09:23 (UTC -04:00)
View GitHub Profile
@marcoshack
marcoshack / gist:579133
Created September 14, 2010 14:37 — forked from hbrandl/gist:547170
irbrc
#making .irbrc posted at http://www.tech-angels.fr/post/963080350/improve-irb-and-fix-it-on-mac-os-x
#work with rails3
require 'rubygems'
#rails3: be sure to include wirble and hirb in your Gemfile
require 'wirble'
require 'hirb'
Wirble.init
Wirble.colorize
# hirb (active record output format in table)
@marcoshack
marcoshack / gist:117760
Created May 25, 2009 21:21 — forked from dje/gist:72840
AWS EC2 snapshot
#! /usr/bin/env ruby
=begin
backshot.rb is a Ruby program driving
Amazon EBS <http://aws.amazon.com/ebs/>
to generate snapshots for backup purposes.
Hourly, daily, weekly, and monthly snapshots
are generated by default.