Skip to content

Instantly share code, notes, and snippets.

View citadelgrad's full-sized avatar
🤖
Identified IT Risk

Scott Nixon citadelgrad

🤖
Identified IT Risk
View GitHub Profile
@gene1wood
gene1wood / all_aws_lambda_modules_python.md
Last active May 7, 2024 11:49
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7
@joelhooks
joelhooks / gear.md
Last active April 2, 2024 20:18
Podcasting Gear List
@jpennell
jpennell / fabfile.py
Created September 18, 2012 01:15
Fabric fabfile for Django/Heroku App
from fabric.api import env, local, require
def deploy():
"""fab [environment] deploy"""
require('environment')
maintenance_on()
push()
syncdb()
migrate()
<html>
<head>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" type="text/css">
<style type="text/css">
code { display: block; }
pre { color: green; }
</style>
</head>
<body>
<h1>Balanced Sample - Collect Bank Account Information</h1>
@binarymatt
binarymatt / signals.py
Created February 12, 2012 16:24
Stripe Webhooks
from django.dispatch import Signal
charge_succeeded = Signal(providing_args=["event"])
charge_failed = Signal(providing_args=["event"])
charge_refunded = Signal(providing_args=["event"])
charge_disputed = Signal(providing_args=["event"])
customer_created = Signal(providing_args=["event"])
customer_updated = Signal(providing_args=["event"])
customer_deleted = Signal(providing_args=["event"])
customer_subscription_created = Signal(providing_args=["event"])
@cyberdelia
cyberdelia / mixin.py
Created September 21, 2011 08:26
Django class based view mixins
# -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.utils.cache import patch_response_headers
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page, never_cache
from django.views.decorators.csrf import csrf_exempt
class NeverCacheMixin(object):
@method_decorator(never_cache)