This file contains 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
import os | |
from commander.deploy import hostgroups, local_command | |
AMO_DIR = "/data/amo_python/src/prod/zamboni" | |
_amo_dir = lambda *p: os.path.join(AMO_DIR, *p) | |
_git_lcmd = lambda ctx, c: ctx.local("/usr/bin/git %s" % c) |
This file contains 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
#!/bin/bash | |
# Sets ~site_packages and tries to `cd ~/dev/<virtualenv`. | |
site_packages=$(virtualenvwrapper_get_site_packages_dir) | |
PROJECT=`basename $VIRTUAL_ENV` | |
DIR="$HOME/dev/$PROJECT" | |
if [ -d $DIR ]; then |
This file contains 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
#!/bin/sh | |
# Usage: `git url` or `git url <commitish>` | |
# | |
# * copies the commit's github url to your clipboard | |
# * prints out the log message | |
# * opens the bugzilla page if it found a bug number | |
# | |
# Set up the github url with `git config github.url <url>`. | |
# Only for the Mac. |
This file contains 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
diff --git a/apps/search/client.py b/apps/search/client.py | |
index 2cb0813..7f38415 100644 | |
--- a/apps/search/client.py | |
+++ b/apps/search/client.py | |
@@ -1,4 +1,6 @@ | |
import re | |
+import socket | |
+import logging | |
from django.conf import settings |
This file contains 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
site_packages=$(virtualenvwrapper_get_site_packages_dir) | |
PROJECT=`basename $VIRTUAL_ENV` | |
DIR="$HOME/dev/$PROJECT" | |
if [ -d $DIR ]; then | |
cd $DIR | |
fi | |
unset DIR |
This file contains 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
site_packages=$(virtualenvwrapper_get_site_packages_dir) | |
PROJECT=`basename $VIRTUAL_ENV` | |
DIR="$HOME/dev/$PROJECT" | |
if [ -d $DIR ]; then | |
cd $DIR | |
fi | |
unset DIR |
This file contains 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
from datetime import datetime | |
import random | |
from pyquery import PyQuery | |
URL = ('https://wiki.mozilla.org/Webdev:Meetings:%s-%s-%s' % | |
datetime.now().timetuple()[:3]) | |
names = PyQuery(url=URL)('h2 .mw-headline').text().split() |