Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import json
import urllib2
url = 'https://github.com/mozilla/socorro/graphs/impact_data'
data = json.load(urllib2.urlopen(url))
attribs = {'n': 'username', 'a': 'additions', 'c': 'commits', 'd': 'deletions'}
results = {}
#!/usr/bin/python
import sys
import re
bug_pattern = re.compile(r'bug \d+', flags=re.IGNORECASE)
for line in sys.stdin:
commit_msg = line.strip()
bug_msg = bug_pattern.findall(commit_msg)
#!/usr/bin/python
#
# gitzilla
#
# give me a list of git log messages and a target milestone, and I'll show you
# the difference.
#
# Example: git log --oneline v2.3.5..master | ./gitzilla.py -t 2.4
import re
#!/usr/bin/python
#
# gitzilla
#
# give me a list of git log messages and a target milestone, and I'll show you
# the difference.
#
# Example: ./gitzilla.py -t 2.4 v2.3.5..master
import re
#!/usr/bin/python
"""
give me a list of git log messages and a target milestone, and I'll show you
the difference.
Example: ./gitzilla.py -t 2.4 v2.3.5..master
"""
import re
import sys
#!/usr/bin/python
"""
give me a list of git log messages and a target milestone, and I'll show you
the difference.
Example: ./gitzilla.py -t 2.4 v2.3.5..master
"""
import re
import sys
diff --git a/js/dashboard.js b/js/dashboard.js
index a55fcac..6b996c0 100644
--- a/js/dashboard.js
+++ b/js/dashboard.js
@@ -80,7 +80,9 @@
datatype: datatype };
var html = '<a href="graph.html#' + $.param(params) + '">';
if (USE_GENERATED_IMAGES_IN_DASHBOARD) {
- html += '<img src="/images/dashboard/flot-' +
+ var href = window.location.href;
diff --git a/Vagrantfile b/Vagrantfile
index 30c5a79..de92320 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,18 +1,13 @@
Vagrant::Config.run do |config|
config.vm.box = "socorro-all"
- config.vm.network "33.33.33.10"
- config.vm.customize do |vm|
- # 1GB
diff --git a/Vagrantfile b/Vagrantfile
index 30c5a79..1728a36 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,13 +1,7 @@
Vagrant::Config.run do |config|
config.vm.box = "socorro-all"
- config.vm.network "33.33.33.10"
- config.vm.customize do |vm|
- # 1GB
diff --git a/js/graph-2.js b/js/graph-2.js
--- a/js/graph-2.js
+++ b/js/graph-2.js
@@ -402,10 +402,13 @@
var buttonHtmlGenerator = function(repository) {
var text = 'Changesets';
- if (repository)
+ if (repository) {
text += ' for ' + repository;