Skip to content

Instantly share code, notes, and snippets.

View djbrowning's full-sized avatar

Dave Browning djbrowning

  • Apple
  • California
View GitHub Profile

Keybase proof

I hereby claim:

  • I am djbrowning on github.
  • I am djb (https://keybase.io/djb) on keybase.
  • I have a public key whose fingerprint is 3B95 3A1D A1EE 2CDC 4655 BF0B FB54 9CA9 F810 8E74

To claim this, I am signing this object:

env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
def call(env)
@render_pdf = false
set_request_to_render_as_pdf(env) if env['PATH_INFO'].match(/\.pdf$/)
status, headers, response = @app.call(env)
request = Rack::Request.new(env)
if @render_pdf && headers['Content-Type'] =~ /text\/html|application\/xhtml\+xml/
body = response.body
@djbrowning
djbrowning / gist:1346159
Created November 7, 2011 20:59
Remove all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx