Skip to content

Instantly share code, notes, and snippets.

@yaniv-aknin
yaniv-aknin / muroku.py
Created April 3, 2012 09:50
muroku: small utility to aid syncing staging/testing/live heroku environments
#!/usr/bin/env python
# Written by @aknin
# https://gist.github.com/gists/2290744
# This code has been placed in the public domain, no strings attached either way.
from __future__ import print_function
import platform
import os
@yaniv-aknin
yaniv-aknin / pyrocfile.py
Created February 9, 2012 09:39 — forked from asenchi/pyrocfile.py
pyrocfile - 100 line Procfile manager in Python
# Pyrocfile - Simple Python impementation of Procfile manager
# Written by Chris Testa (http://testa.co/) in 2011
# Released in the Public Domain
import argparse, logging, os.path, random, re, select, signal, subprocess
def _new_logger(name, color=None):
logger = logging.getLogger(name)
hdlr = logging.StreamHandler()
color, end_color = '\033[9%dm' % (color or random.randint(1, 6)), '\033[0m'
@yaniv-aknin
yaniv-aknin / brew-python3
Created January 16, 2011 15:19
Brew build errors for Python 3
$ brew install python3
==> Downloading http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/python3/3.1.3 --with-computed-gotos --enable-shared
==> make
/usr/bin/cc -c -O3 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/Cellar/readline/6.1/include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
/usr/bin/cc -c -O3 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/Cellar/readline/6.1/include -DPy_BUILD_CORE -o Parser/acceler.o Parser/acceler.c
/usr/bin/cc -c -O3 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/Cellar/readline/6.1/include -DPy_BUILD_CORE -o Parser/grammar1.o Parser/grammar1.c
/usr/bin/cc -c -O3 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/Cellar/readline