Skip to content

Instantly share code, notes, and snippets.

@aidos
aidos / shapley_sqla.py
Last active September 15, 2015 16:30
Using Shapley types with geoalchemy2 / sqlalchemy
import binascii
import sqlalchemy.types
import geoalchemy2.types
from geoalchemy2.shape import WKTElement
import shapely.wkb
import shapely.geometry
class ShapelyGeo(sqlalchemy.types.TypeDecorator):
#!/usr/bin/env python
import sys
import boto
import pprint
# set credentials
ACCESS_KEY = "<access key>"
SECRET_KEY = "<security key>"
@aidos
aidos / keybase.md
Created May 15, 2014 13:24
keybase.md

Keybase proof

I hereby claim:

  • I am aidos on github.
  • I am aidan (https://keybase.io/aidan) on keybase.
  • I have a public key whose fingerprint is F0FB 3CD3 53EB E21B 9508 2FA1 5041 550F 833B E5A9

To claim this, I am signing this object:

#!/bin/sh
# start with
# cd /path/to/your/django/project
# sudo keep_alive.sh start projectname portnumber
# in another window
# sudo keep_alive.sh restart/stop projectname