Skip to content

Instantly share code, notes, and snippets.

Sharoon Thomas sharoonthomas

Block or report user

Report or block sharoonthomas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
@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
You can’t perform that action at this time.