Skip to content

Instantly share code, notes, and snippets.

View rnix's full-sized avatar
💭
I may be slow to respond.

Robert Nix rnix

💭
I may be slow to respond.
View GitHub Profile
@rnix
rnix / postgres-apt.sh
Last active August 29, 2015 13:55
Add PostGreSQL apt repository
#!/bin/bash
URL='http://anonscm.debian.org/loggerhead/pkg-postgresql/postgresql-common/trunk/download/head:/apt.postgresql.org.s-20130224224205-px3qyst90b3xp8zj-1/apt.postgresql.org.sh'
curl -L "${URL}" | sudo bash -s precise
@rnix
rnix / README.md
Last active August 29, 2015 13:56
Auto-install elasticsesarch service wrapper

Modifies elasticsearch.conf, determines OS bit-depth, optioanlly configures RUN_AS_USER.

e.g. Usage:

curl -ksL https://gist.github.com/rnix/8823390/raw/install-elasticsearch-servicewrapper.sh | bash -s [ES_HOME [RUN_AS_USER]]

@rnix
rnix / bootstrap.sh
Last active August 29, 2015 14:06
Vagrantfile bootstrap
#!/bin/bash
apt-get update -qy
apt-get install -qy python g++ make curl git build-essential software-properties-common python-software-properties
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rnix
rnix / .gitignore
Last active August 29, 2015 14:09
PostGIS Tiger Build - Fixes the horribleness that is the PostGIS Tiger script generation
*
@rnix
rnix / neighborhoods.geojson
Created June 30, 2015 17:32
neighborhoods
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rnix
rnix / ldd.out
Created October 3, 2012 01:30
Test libjson-c
$ ldd test
linux-vdso.so.1 => (0x00007fffaf5ff000)
libjson-c.so.2 => /usr/local/lib/libjson-c.so.2 (0x00007ff4d7c29000)
libm.so.6 => /lib64/libm.so.6 (0x00007ff4d799c000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff4d7609000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff4d7e33000)
@rnix
rnix / configure.out
Created October 3, 2012 01:27
PostGIS problem running "make check" on Amazon Linux AMI release 2012.03
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
@rnix
rnix / PostGIS.makefile
Created October 3, 2012 01:38
Build PostGIS on Amazon Linux AMI release 2012.03
POSTGIS=2.0.1
PROJ=4.8.0
GEOS=3.3.5
JSON=0.10
GDAL=1.9.1
install: postgis
#
proj: proj-$(PROJ)
@rnix
rnix / Procfile
Created November 30, 2012 14:44
Heroku Django
web: python manage.py runserver 0.0.0.0:$PORT --noreload