Skip to content

Instantly share code, notes, and snippets.

@frog32
frog32 / pre-commit
Created November 25, 2011 11:11 — forked from spulec/pre-commit
Yipit Pre-commit Hook
#!/usr/bin/env python
import os
import re
import subprocess
import sys
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)')
CHECKS = [

Serving Django and Twisted using HAproxy

Why?

Because we wanted to achive the following while developing a webapp using websockets:

Static serving (nginx), Django application (gunicorn) and Websockets service (twisted)

  • on the same IP
@frog32
frog32 / django.md
Last active August 29, 2015 13:56 — forked from sspross/django.md

Django

Entwicklungsumgebung einrichten

Brew installieren

  1. Existierende package manager löschen (fink, darwinports):

    sudo rm -r /sw /opt
    

sudo rm -r /usr/local/include/* /usr/local/lib/*