Skip to content

Instantly share code, notes, and snippets.

View felixxm's full-sized avatar

Mariusz Felisiak felixxm

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
@charettes
charettes / compare.py
Created November 11, 2022 01:29
Django test suite SQL output compare
import argparse
import difflib
import os
import sys
from itertools import chain
import yaml
file_name_format = "{sha}:{vendor}.yml"