Skip to content

Instantly share code, notes, and snippets.

@renefritze
renefritze / detect-broken-symlinks.py
Last active October 4, 2017 08:45 — forked from seanh/detect-broken-symlinks.py
A Python script to check for broken symlinks in the current working directory. I use this as part of a pre-commit hook with git.
#!/bin/sh
hg clone https://bitbucket.org/apdavison/sumatra_server_example smtserve
cd smtserve
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py syncdb
python manage.py runserver