Clone SVN into a git repo:
git svn clone https://svn.mozilla.org/my/project project
cd project
git remote add origin [email protected]:/johndoe/project
git push origin master
Change a file:
touch abc; git add abc; git commit -m 'awesome file'
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() |
#!/bin/bash | |
site_packages=$(virtualenvwrapper_get_site_packages_dir) | |
PROJECT=`basename $VIRTUAL_ENV` | |
DIR="$HOME/dev/$PROJECT" | |
if [ -d $DIR ]; then | |
cd $DIR | |
fi |
import httplib | |
import urllib | |
import uuid | |
ROOT = 'addons.mozilla.org' | |
BUILDER_URL = '/en-US/developers/tools/builder/' | |
params_ = { | |
'name': 'unst unst', |
#!/usr/bin/python -tt | |
""" | |
USAGE | |
cleanup-maildir [OPTION].. COMMAND FOLDERNAME.. | |
DESCRIPTION | |
Cleans up old messages in FOLDERNAME; the exact action taken | |
depends on COMMAND. (See next section.) | |
Note that FOLDERNAME is a name such as 'Drafts', and the |
(* | |
Things-Bugzilla AppleScript: | |
Takes a bugzilla.mozilla.org bug number from the user, and adds a new | |
Things.app ToDo item for it in the Inbox. | |
*) | |
-- get the bug number from the user | |
set bugnumber to "" | |
set clip to (the clipboard as string) | |
repeat with i in characters of clip |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: FastCGI servers for Django | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: Start FastCGI servers with Django. | |
# Description: Django, in order to operate with FastCGI, must be started | |
# in a very specific way with manage.py. This must be done |
Clone SVN into a git repo:
git svn clone https://svn.mozilla.org/my/project project
cd project
git remote add origin [email protected]:/johndoe/project
git push origin master
Change a file:
touch abc; git add abc; git commit -m 'awesome file'
from django.core.serializers import serialize | |
serialize('json', [list, of, objects], indent=4) |
#!/bin/sh | |
DATE=$(date +%Y-%m-%d) | |
DIR="$(pwd)/amo-slim-$DATE" | |
rm -rf $DIR | |
mkdir -p $DIR | |
cd $DIR | |
DB='remora' |
// ==UserScript== | |
// @name expertsExchange | |
// @namespace smk | |
// @description kill the stupid hiding mechanisms | |
// @include http://*.experts-exchange.com/* | |
// ==/UserScript== | |
var options={ | |
warn_noanswers: true, | |
googleBotUserAgent: 'Googlebot/2.1 (+http://www.google.com/bot.html)', |