Skip to content

Instantly share code, notes, and snippets.

@jbalogh
jbalogh / omg-update-zamboni.sh
Created May 19, 2010 22:08
oremj's preview update script
#!/bin/bash
GIT=/usr/local/bin/git
DATE=$(date "+%Y/%m/%d %H:%M:%S")
AMO_PYTHON_ROOT=/data/amo_python
function update_previews {
DIR=$1
BRANCH=$2
@jbalogh
jbalogh / git-url
Created April 28, 2010 19:28 — forked from davedash/gist:382311
git-url: helps you close bugs good
#!/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.
@jbalogh
jbalogh / httpd.conf
Created April 27, 2010 20:00
Our httpd.conf for zamboni as of right now!
# vim: syntax=apache
WSGISocketPrefix /var/run/wsgi
<VirtualHost *:80 *:81>
ServerName addons.mozilla.org
ServerAlias addons.update.mozilla.org addons-nl.stage.mozilla.com addons-cdn.mozilla.net
DocumentRoot /data/www/addons.mozilla.org-remora/site/app/webroot
SetEnv HTTPS on
Alias /media /data/amo_python/www/prod/zamboni/media

zamboni live pages schedule

5.10 (5/4)

  • add-on detail pages
  • homepage
  • discovery pane

5.11 (5/25)

@jbalogh
jbalogh / ipython-macros.py
Created April 2, 2010 15:38
iPython macros are great for executing the same code over and over.
In [6]: hist
1: _ip.magic("ed xx")
2: from addons.models import AddonRecommendation, Addon
3: import transformer
4: q = Addon.objects.all().transform(transformer.get_trans).filter(id=1865)
5: q.get()
6: _ip.magic("hist ")
In [7]: macro xx 2-5
Macro `xx` created. To execute, type its name (without quotes).
# Creating a new release branch off the 5.8.1 tag,
# with a single new patch picked from master.
git checkout -b 5.8.2 5.8.1
git cherry-pick 045337ecff
git tag 5.8.2 HEAD
git push origin --tags
@jbalogh
jbalogh / a.diff
Created March 31, 2010 19:39 — forked from davedash/a.diff
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
http://localhost/z/en-US/firefox/
http://localhost/z/fr/firefox/
http://localhost/z/de/firefox/
http://localhost/z/he/firefox/
http://localhost/z/pt-BR/firefox/
http://localhost/z/ja/firefox/
http://localhost/z/zh-TW/firefox/
http://localhost/z/es-ES/firefox/
http://localhost/z/el/firefox/
jetpack.future.import('pageMods');
jetpack.pageMods.add(function(doc){
$(doc).find('.section-teaser').hide();
}, ['https://addons.mozilla.org/*', 'https://preview.addons.mozilla.org/*']);
http://0:8000/en-US/firefox/themes/
http://0:8000/en-US/firefox/themes/?sort=name
http://0:8000/en-US/firefox/themes/?sort=downloads
http://0:8000/en-US/firefox/themes/?sort=rating
http://0:8000/en-US/firefox/themes/?sort=date
http://0:8000/en-US/firefox/themes/?experimental=on
http://0:8000/en-US/firefox/themes/?sort=name&experimental=on
http://0:8000/en-US/firefox/themes/?sort=downloads&experimental=on
http://0:8000/en-US/firefox/themes/?sort=rating&experimental=on