Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
"""
Load and print hotshot stats from a file.
Usage:
python load_prof.py <file>
Prints out the top 20 functions, sorted by call time and number
of calls.
@jbalogh
jbalogh / dict-siege-remora.txt
Created February 9, 2010 01:27
Sieges of the remora and zamboni dict/language pack pages.
https://preview.addons.mozilla.org/pl/firefox/browse/type:3
https://preview.addons.mozilla.org/en-US/firefox/browse/type:3
https://preview.addons.mozilla.org/de/firefox/browse/type:3
https://preview.addons.mozilla.org/fr/firefox/browse/type:3
https://preview.addons.mozilla.org/ar/firefox/browse/type:3
https://preview.addons.mozilla.org/ca/firefox/browse/type:3
https://preview.addons.mozilla.org/cs/firefox/browse/type:3
https://preview.addons.mozilla.org/da/firefox/browse/type:3
https://preview.addons.mozilla.org/el/firefox/browse/type:3
https://preview.addons.mozilla.org/fi/firefox/browse/type:3
@jbalogh
jbalogh / nginx.conf
Created February 11, 2010 21:58
Serving AMO media and add-on files from a local nginx.
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
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
jetpack.future.import('pageMods');
jetpack.pageMods.add(function(doc){
$(doc).find('.section-teaser').hide();
}, ['https://addons.mozilla.org/*', 'https://preview.addons.mozilla.org/*']);
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/
@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
# 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 / 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).

zamboni live pages schedule

5.10 (5/4)

  • add-on detail pages
  • homepage
  • discovery pane

5.11 (5/25)