Skip to content

Instantly share code, notes, and snippets.

@rgould
rgould / gist:2572982
Created May 2, 2012 01:48
Making Rails consantize "API" properly
ActiveSupport::Inflector.inflections do |inflect|
acronym 'API'
acronym 'APIs'
end
@rgould
rgould / gist:2030858
Created March 13, 2012 19:13
AWS's ElasticLoadBalancing tools filenames
rgould@reifnir ~/dev » ls ElasticLoadBalancing-1.0.15.1/bin
elb-apply-security-groups-to-lb
elb-associate-route53-hosted-zone
elb-attach-lb-to-subnets
elb-cmd
elb-configure-healthcheck
elb-create-app-cookie-stickiness-policy
elb-create-lb
elb-create-lb-cookie-stickiness-policy
elb-create-lb-listeners
rvm install 1.9.3-p125
rvm use 1.9.3-p125
rvm gemset create gaggleup
cd ~/gaggleup
gem install bundler
bundle config build.ruby-debug-base19 --with-ruby-include=$rvm_path/src/$(rvm tools strings)
bundle install
@rgould
rgould / about.md
Created August 9, 2011 20:56 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
#!/bin/bash
PASTEL='{
"Ansi 0 Color" = {
"Blue Component" = 0.3097887;
"Green Component" = 0.3097887;
"Red Component" = 0.3097887;
};
"Ansi 1 Color" = {
"Blue Component" = 0.3764706;