Skip to content

Instantly share code, notes, and snippets.

View cwisecarver's full-sized avatar

Chris Wisecarver cwisecarver

View GitHub Profile
@cwisecarver
cwisecarver / install.sh
Last active March 6, 2018 20:56 — forked from amontalenti/install.sh
pyenv Python 2.7 install to match Ubuntu server settings
export PYTHON_CONFIGURE_OPTS="--enable-ipv6\
--enable-unicode=ucs4\
--with-dbmliborder=bdb:gdbm\
--with-system-expat\
--with-system-ffi\
--with-fpectl"
CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install -f 2.7.14

Keybase proof

I hereby claim:

  • I am cwisecarver on github.
  • I am cwisecarver (https://keybase.io/cwisecarver) on keybase.
  • I have a public key ASCgLo2QQ-_OYkqNgLRiJUW0Y2_bHKp6LK9bNuMrO05FQQo

To claim this, I am signing this object:

@cwisecarver
cwisecarver / base.py
Created May 27, 2016 00:07
Working server_side_cursors in django 1.9
import uuid
import psycopg2
from django.conf import settings
from django.db.backends import utils
from django.db.backends.postgresql.base import \
DatabaseWrapper as PostgresqlDatabaseWrapper
from django.db.backends.postgresql.base import *