Skip to content

Instantly share code, notes, and snippets.

View digitaldavenyc's full-sized avatar

Dave Padovano digitaldavenyc

View GitHub Profile
@digitaldavenyc
digitaldavenyc / celery.sh
Created October 4, 2017 01:37 — forked from amatellanes/celery.sh
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),
@digitaldavenyc
digitaldavenyc / auth.py
Created August 10, 2017 05:14 — forked from alejandrobernardis/auth.py
Tornado, Class Role, Permission, Identity (+mixin) and AuthContext
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Asumi Kamikaze Inc.
# Copyright (c) 2013 The Octopus Apps Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
# Author: Alejandro M. Bernardis
# Email: alejandro.bernardis at gmail.com
# Created: 04/Oct/2013 09:37
import urllib