Skip to content

Instantly share code, notes, and snippets.

View sfriesel's full-sized avatar

Stefan Friesel sfriesel

  • Berlin, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sfriesel on github.
  • I am sfriesel (https://keybase.io/sfriesel) on keybase.
  • I have a public key whose fingerprint is D7B3 F34E 376E FAE6 0550 C21B 4A37 D080 5567 F06B

To claim this, I am signing this object:

@sfriesel
sfriesel / gist:2273f30dda1ac8adaa02
Created November 18, 2014 15:17
cca interface proposal
#!/usr/bin/env python
'''
Examples:
cca connect sftest
cca push
cca push --force master:staging
cca config set DJANGO_DEBUG=true
cca addon add newrelic free
cca worker start billing_monthly
cca -A core -D default deployment show
@sfriesel
sfriesel / gist:4634963
Created January 25, 2013 14:49
Django doc bis and pieces
# Optimizing static file delivery
To improve page loading times, you should serve your static assets from a cloud storage provider like S3. Refer to the [django documentation] for details. Additionaly (or for small deployments alternatively) you can set appropiate caching headers in your HTTP responses, so that later requests can be directly served by our caching proxies.
Foobar
@sfriesel
sfriesel / linux.c
Created January 21, 2013 14:03 — forked from peo3/linux.c
/*
* Usage in python:
*
* import linux
* efd = linux.eventfd(0, 0)
* ...
* ret = struct.unpack('Q', os.read(efd, 8))
* ...
* linux.close(efd)
*/