Skip to content

Instantly share code, notes, and snippets.

View benjmin-r's full-sized avatar

Benjamin Reitzammer benjmin-r

View GitHub Profile
@benjmin-r
benjmin-r / flaskapp.py
Created July 27, 2012 20:14 — forked from kennethreitz/flaskapp.py
My typical flask app base
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_heroku import Heroku
from flask_sslify import SSLify
from raven.contrib.flask import Sentry
from flask.ext.celery import Celery
##
## Simple password management in ksh-compatible shell
## You'll need a unix-like system and a working GPG configuration
export GPG_KEY=""
function pwgrep() {
gpg --batch -q -d -r $GPG_KEY $HOME/.auth/pwdb.asc | grep $*
}
function pwcat() {
live_loop :kick do
sample :bd_808
sleep 0.5
end
live_loop :snare, sync: :kick do
sample :sn_dolf
sleep 1
end