Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Browning djbrowning

  • Apple
  • California
View GitHub Profile
View keybase.md

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:

View gist:1346159
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
View gist:604937
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
View mysql gem install for mac
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config