Skip to content

Instantly share code, notes, and snippets.

View jarshwah's full-sized avatar

Josh Smeaton jarshwah

View GitHub Profile
@jarshwah
jarshwah / Create Postgres Django DB
Last active October 13, 2018 20:24
Creating testing databases for django on Postgres 9.3 for OSX (installed with homebrew)
# Note that the "smeatonj" below is the user that installed postgres with homebrew
# first, the "default" database:
$ createuser -U smeatonj djangotest -P
Enter password for new role:
Enter it again:
$ createdb djangotest
$ psql -U smeatonj -d djangotest
@jarshwah
jarshwah / install_cx_Oracle_rhel6.sh
Last active February 23, 2017 22:29
Installing cx_Oracle on Linux Redhat 6 using RPMs
# assuming python and pip are already installed
# installing the instantclient is usually where problems happen
# download the following files from oracle
#
# oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
# oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm
# oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm
# install the rpms