Skip to content

Instantly share code, notes, and snippets.

View thommahoney's full-sized avatar

Thom Mahoney thommahoney

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thommahoney on github.
  • I am thom (https://keybase.io/thom) on keybase.
  • I have a public key ASBv4e-8UhZI45Txh22g5leZsG29_i4iFH58StQ5QKoUowo

To claim this, I am signing this object:

alias gp='git pull'
- s.add_runtime_dependency 'mime-types', '>= 1.16'
+ if RUBY_VERSION < '2.0.0'
+ s.add_runtime_dependency 'mime-types', ['>= 1.16', '< 3']
+ else
+ s.add_runtime_dependency 'mime-types', '>= 1.16'
+ end
thom@fastlydev fastly/Squaw [remove-timestamps] » gem install typhoeus -v '0.3.3'
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.
/home/thom/.rubies/ruby-2.0.0-p451/bin/ruby -r ./siteconf20150415-32894-act9si.rb extconf.rb
extconf.rb:9:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:9:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:10:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:17:in `<main>': Use RbConfig instead of obsolete and deprecated Config.

Keybase proof

I hereby claim:

  • I am thommahoney on github.
  • I am thom (https://keybase.io/thom) on keybase.
  • I have a public key whose fingerprint is 0D73 A4ED A0FC 0CC5 BD25 E1A5 CD4D FF15 B8EA 14C6

To claim this, I am signing this object:

Verifying that +thommahoney is my openname (Bitcoin username). https://onename.com/thommahoney
@thommahoney
thommahoney / keybase.md
Created March 28, 2014 18:03
keybase.md

Keybase proof

I hereby claim:

  • I am thommahoney on github.
  • I am thom (https://keybase.io/thom) on keybase.
  • I have a public key whose fingerprint is E1E8 FA7A 520E C3D3 E923 C20C B7BF D761 426D AFA2

To claim this, I am signing this object:

@thommahoney
thommahoney / server.rb
Created April 25, 2013 00:39
Fun with Ruby modules
module SoftDelete
REQUIRED_PROPERTIES = [
[ :deleted_at, DataMapper::Property::DateTime ],
].freeze
def self.extended(klass)
REQUIRED_PROPERTIES.each do |property|
klass.send(:property, *property)
end
@thommahoney
thommahoney / gist:2491946
Created April 25, 2012 18:27
RailsConf 2012 Lightning Talks
5 min:
~ Objective-C + Rails: Communicating with Rails from iOS / Mac OS
Dan Hassin
1 min:
~ Painless Javascript
koting hatduklgg
with wind tunnel
5 min:
@thommahoney
thommahoney / gist:1353579
Created November 9, 2011 23:48
Rubinius 2.0.0dev readline error
› rails console
An exception occurred running script/rails
no such file to load -- readline/ext/readline (LoadError)
Backtrace:
Rubinius::CodeLoader#load_error at kernel/common/codeloader.rb:337
Rubinius::CodeLoader#resolve_require_path at kernel/common/codeloader.rb:324
{ } in Rubinius::CodeLoader#require at kernel/common/codeloader.rb:35
Rubinius.synchronize at kernel/bootstrap/rubinius.rb:133
Rubinius::CodeLoader#require at kernel/common/codeloader.rb:34