Skip to content

Instantly share code, notes, and snippets.

View benoitc's full-sized avatar

Benoit Chesneau benoitc

View GitHub Profile
# Copypasta of Django's runserver management command, modified to use gunicorn http://github.com/benoitc/gunicorn
import os
import signal
import sys
import threading
import time
from optparse import make_option
@benoitc
benoitc / gist:1163616
Created August 22, 2011 21:18 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: web craftsman doing opensource development
Favorite Python project: my own project? gunicorn or couchapp
Favorite Conference: pycon
Python Experience Level: Expert
#!/usr/bin/env escript
%%% This script converts an arbitrary binary file to an Erlang module with a
%%% single exported 'bin/0' function that returns the original binary.
%%%
%%% See the end of the file for how I figured out the correct terms.
main(["+debug_info" | Files]) ->
io:format("Embedding binaries with debug_info...\n"),
lists:foreach(fun(X) -> embed_file_in_beam(X, [debug_info]) end, Files);