Skip to content

Instantly share code, notes, and snippets.

# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
mkdir -p ~/sources/ && \
# Compile against OpenSSL to enable NPN
@adamlogic
adamlogic / pgpull
Last active January 17, 2018 15:13
Wrapper script around `heroku pg:pull` for loading a local database
#!/bin/bash
# Example:
# pgpull -r production
#
# Options are passed through to `heroku pg:pull`, so this would look for a git branch
# named "production".
opts=$*
# Replace this with your local database name