Skip to content

Instantly share code, notes, and snippets.

View kamarcum's full-sized avatar
:fishsticks:

Keith Marcum kamarcum

:fishsticks:
  • Portland, Oregon
View GitHub Profile
@kamarcum
kamarcum / keybase.md
Created October 2, 2014 19:36
keybase.io

Keybase proof

I hereby claim:

  • I am kamarcum on github.
  • I am marcumka (https://keybase.io/marcumka) on keybase.
  • I have a public key whose fingerprint is CB99 CCE3 96C2 713F F5E4 539D 86A5 4353 248A F6FC

To claim this, I am signing this object:

@kamarcum
kamarcum / doit.sh
Created June 25, 2014 18:43
Inspect requests on a server with rack
gem install rack ; echo "run Proc.new { |env| puts env.inspect; ['200', {'Content-Type' => 'text/html'}, [env.inspect]] }" >> hax.ru ; rackup hax.ru
@kamarcum
kamarcum / gist:9486644
Created March 11, 2014 14:18
Find your tallest postgres tables
ActiveRecord::Base.connection.execute("SELECT relname, reltuples FROM pg_class where relname NOT LIKE 'pg_%' ORDER BY reltuples DESC LIMIT 10;").each { |row| puts row }