This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Day job: web craftsman doing opensource development | |
Favorite Python project: my own project? gunicorn or couchapp | |
Favorite Conference: pycon | |
Python Experience Level: Expert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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); |