Skip to content

Instantly share code, notes, and snippets.

View jmontrose's full-sized avatar

Jesse Montrose jmontrose

  • Berlin
  • 17:11 (UTC +02:00)
View GitHub Profile
@jmontrose
jmontrose / pully.py
Last active August 29, 2015 14:23
quick hack to batch export from ulysses into simple plain text
#!/usr/bin/env python
import os
import glob
import plistlib
def cleanse(text):
body = text
body = body.replace('\xe2\x80\x99', "'")
body = body.replace('\xe2\x80\x9c', '"')

Keybase proof

I hereby claim:

  • I am jmontrose on github.
  • I am jmontrose (https://keybase.io/jmontrose) on keybase.
  • I have a public key whose fingerprint is 299E E0AB 2E33 7A9E 4F42 9CEE 8ED1 4940 5D52 4F0B

To claim this, I am signing this object:

#!/bin/bash
#
# Run with:
# $ heroku config:set AWS_S3_BUCKET=public-bucket
# $ heroku run 'curl https://gist.github.com/ejholmes/7120501/raw/build_nginx.sh | sh'
NGINX_VERSION=1.5.2
PCRE_VERSION=8.21
nginx_tarball_url=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz