Skip to content

Instantly share code, notes, and snippets.

Avatar

Sharoon Thomas sharoonthomas

View GitHub Profile
@tarunbhardwaj
tarunbhardwaj / Jinja-static-site.py
Last active Dec 9, 2015
Render JInja template as static site using Flask
View Jinja-static-site.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Jinja2 static site renderer using Flask
@author Tarun Bhardwaj
@license FreeBSD Licence
"""
from flask import Flask, abort, render_template
from jinja2 import TemplateNotFound
@sharoonthomas
sharoonthomas / change_db_owner.sh
Created Jun 11, 2012 — forked from gingerlime/change_db_owner.sh
Postgresql - Changing ownership on all tables
View change_db_owner.sh
#!/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
You can’t perform that action at this time.