Skip to content

Instantly share code, notes, and snippets.

@gingerlime
gingerlime / change_db_owner.sh
Created April 24, 2012 19:32
Postgresql - Changing ownership on all tables
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
@claudiosanches
claudiosanches / .gitignore
Created November 24, 2012 02:46
GIT: Include empty directories
# Ignore everything in this directory
*
# Except this file
!.gitignore
@deeplook
deeplook / ipython_object_graphs.ipynb
Created February 12, 2013 14:42
An IPython notebook illustrating an IPython extension for displaying object graphs.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@claudiosanches
claudiosanches / nginx.conf
Created July 1, 2013 19:30
Django-CMS - Correção da URL do pt-br
rewrite ^/?pt\-BR/(.*)$ /pt-br/$1 permanent;
rewrite ^/?pt\_BR/(.*)$ /pt-br/$1 permanent;