Skip to content

Instantly share code, notes, and snippets.

View globau's full-sized avatar
🇦🇺

glob globau

🇦🇺
View GitHub Profile
@globau
globau / github-to-bugzilla.pl
Created September 24, 2012 06:19
github to bugzilla migration
#!/usr/bin/perl
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# See https://bugzilla.mozilla.org/show_bug.cgi?id=793784
use strict;
use warnings;
@globau
globau / split.pl
Created November 19, 2012 05:48
script which splits bmo syslog files
#!/usr/bin/perl
# expects logs rsync'ed into a raw/ sub-directory (ie. raw/pp-app-bugs01, raw/pp-app-bugs02/, ..)
# generates logs in a logs/ sub-directory
use strict;
use warnings;
use autodie;
use FindBin qw($Bin);
@globau
globau / bugzilla-xmlrpc.pl
Created January 3, 2013 06:00
bugzilla xmlrpc testing script
#!/usr/bin/perl
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
use strict;
use warnings;
use HTTP::Cookies;
@globau
globau / perlwhich.pl
Created January 31, 2013 16:15
give perlwhich a module name, and it will tell which which file defines it.
#!/usr/bin/perl
use strict;
my $syntax = <<EOF;
syntax: perlwhich [-v] <package>
displays the file where <package> is implemented
-v shows the version of any packages found
EOF
@globau
globau / bugzilla-jsonp.js
Last active December 13, 2015 23:59
bugzilla jsonp
function show_bug_info(bug_id) {
var params = [{
"ids": [ bug_id ]
}];
var request = {
"method": "Bug.get",
"params": JSON.stringify(params)
};
$.ajax({
"contentType": "application/json",
#!/usr/bin/perl
use strict;
use warnings;
use autodie;
use lib '/opt/bugzilla/bz';
use BugzillaDev;
chdir('/opt/bugzilla/repo/bmo/4.2');
#!/usr/bin/perl
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
use strict;
use warnings;
use HTTP::Cookies;
#!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# See https://bugzilla.mozilla.org/show_bug.cgi?id=793784
use strict;
use warnings;
@globau
globau / build-techniclauncher-app.sh
Created February 12, 2014 10:19
create an osx app out of the techniclauncher
#!/bin/bash
pushd `dirname $0` >/dev/null
if [ "$1" == "" ]; then
echo "syntax: $0 {url to technicpack jar}"
echo "eg. $0 http://launcher.technicpack.net/launcher/415/TechnicLauncher.jar"
exit
fi
if [ -e techniclauncher.app ]; then
#!/usr/bin/perl
# very rough proof-of-concept for integration of markdown into bugzilla
# glob@mozilla.com
use strict;
use warnings;
use Bugzilla;
use Bugzilla::Bug;