Skip to content

Instantly share code, notes, and snippets.

View joshkinabrew's full-sized avatar

Josh Kinabrew joshkinabrew

View GitHub Profile
@joshkinabrew
joshkinabrew / keybase.md
Created June 11, 2015 14:33
keybase.md

Keybase proof

I hereby claim:

  • I am joshkinabrew on github.
  • I am joshkinabrew (https://keybase.io/joshkinabrew) on keybase.
  • I have a public key whose fingerprint is A152 9CA5 A60F C418 D929 E240 A3C3 9263 4C8A 863B

To claim this, I am signing this object:

@joshkinabrew
joshkinabrew / sidekiq
Last active August 29, 2015 14:03 — forked from dyerc/sidekiq
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: 345 100 75
#
# Description: Starts and Stops Sidekiq message processor.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start