Skip to content

Instantly share code, notes, and snippets.

View drcongo's full-sized avatar
🏠
Working from home

Andy Beaumont drcongo

🏠
Working from home
View GitHub Profile
[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^3.6"
[tool.poetry.dev-dependencies]
> /usr/srv/app/src/wagtail-cache/wagtailcache/cache.py(49)_wrapped_view_func()
48 import ipdb; ipdb.set_trace()
---> 49 response = djcache.process_request(request)
50 if response:
ipdb> n
> /usr/srv/app/src/wagtail-cache/wagtailcache/cache.py(50)_wrapped_view_func()
49 response = djcache.process_request(request)
---> 50 if response:
51 # add a response header to indicate this was a cache hit
Verifying I am +drcongo on my passcard. https://onename.com/drcongo
### Keybase proof
I hereby claim:
* I am drcongo on github.
* I am drcongo (https://keybase.io/drcongo) on keybase.
* I have a public key whose fingerprint is B9E4 A61A 68C7 3B52 BC9A 5F95 568D C964 C8C8 B3AD
To claim this, I am signing this object:
#!/usr/bin/env python
# coding: utf-8
# You need PIL <http://www.pythonware.com/products/pil/> to run this script
# Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use
# any TTF you have)
# Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com]
# License: GPL <http://www.gnu.org/copyleft/gpl.html>
from image_utils import ImageText
@drcongo
drcongo / fab deploy_static
Last active May 15, 2018 23:28
A Fabric task to deploy static assets to S3, gzipping the js and css files, and invalidating cache objects on CloudFront. Feel free to point out where it could be improved.
import datetime
import arrow
from fabric.api import *
import boto
from boto.cloudfront import CloudFrontConnection
import os
from datetime import date, timedelta
import gzip
import shutil