Skip to content

Instantly share code, notes, and snippets.

View ronnix's full-sized avatar

Ronan Amicel ronnix

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ronnix on github.
  • I am ronnix (https://keybase.io/ronnix) on keybase.
  • I have a public key ASD7ASbdZPwNJzy0MdsFgr9bczZSsxJeE0HawAl62J3yIAo

To claim this, I am signing this object:

$ cat .git/hooks/post-checkout
#!/bin/bash
# Remove stray .pyc files
find . -name '*.pyc' -delete
# Update requirements if needed
for filename in requirements.txt dev-requirements.txt test-requirements.txt ; do
CHANGED=`git diff HEAD@{1} --stat -- $GIT_DIR/../$filename | wc -l`
if [ $CHANGED -gt 0 ];
Downloading/unpacking ipython==0.13.2 (from -r requirements.txt (line 20))
Hash of the package https://pypi.python.org/packages/source/i/ipython/ipython-0.13.2.zip#md5=76195c97e426fbc641f66c55faa... (from https://pypi.python.org/simple/ipython/) (<md5 HASH object @ 0x19c9d00>) doesn't match the expected hash 76195c97e426fbc641f66c55faa0318a!
Bad md5 hash for package https://pypi.python.org/packages/source/i/ipython/ipython-0.13.2.zip#md5=76195c97e426fbc641f66c55faa... (from https://pypi.python.org/simple/ipython/)
@ronnix
ronnix / gist:3707121
Created September 12, 2012 14:46
Tornado + Redis listener thread example code
from collections import defaultdict
from threading import Thread
import redis
import tornado.web
class SomeRequestHandler(tornado.web.RequestHandler):

Mac OS X est un Unix, et à ce titre, l'installation de git n'est pas trop compliquée :). Pour résumer, vous avez deux méthodes :

  • installer une version déjà compilée par un tiers
  • installer une version source

Cette dernière méthode est plus contraignante, car votre système doit contenir le nécessaire pour compiler (compilateur GCC, outils Make et Autoconf...). Les utilisateurs d'Unix libres (Linux, *BSD) ne seront pas étonnés par ces deux méthodes d'installation.

Installer une version compilée

Pour ceux qui souhaitent ne pas "se prendre la tête", il existe le projet Git OSX Installer, qui permet d'installer simplement git sur Mac OS X 10.5 uniquement. Vous pouvez constater que le projet est actif (au 30/10/2010, la version 1.7.3.1 est disponible alors que la dernière version est la 1.7.3.2).