Skip to content

Instantly share code, notes, and snippets.

View estromlund's full-sized avatar

Erik Stromlund estromlund

View GitHub Profile
@estromlund
estromlund / keybase.md
Created September 18, 2014 05:42
Keybase Github Proof

Keybase proof

I hereby claim:

  • I am estromlund on github.
  • I am estromlund (https://keybase.io/estromlund) on keybase.
  • I have a public key whose fingerprint is 4CF5 05EB 6561 4EB5 9866 C66B 86AC A5E7 006A B1A0

To claim this, I am signing this object:

@estromlund
estromlund / access_blocker.rb
Created September 22, 2013 21:47
Rack middleware to block requests from specific API keys before they hit your Rails app
# Rack middleware to block specific requests
# Add to your application.rb file:
#
# config.autoload_paths += %W( #{config.root}/lib/middleware )
# config.middleware.use "AccessBlocker"
class AccessBlocker
def initialize(app)
@app = app
end