This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/static-resource-test.js b/tests/static-resource-test.js | |
index 66a83a9..76307a4 100755 | |
--- a/tests/static-resource-test.js | |
+++ b/tests/static-resource-test.js | |
@@ -23,7 +23,15 @@ suite.addBatch({ | |
var res = resources.resources; | |
assert.ok(files['/production/dialog.css'].length >= 3); | |
// Get ride of non-localized asset bundles | |
- ['/production/communication_iframe.js', '/production/include.js', '/production/dialog.css', '/production/browserid.css', '/production/ie8_main.css', '/production/ie8_dialog.css', '/production/relay.js', '/production/html5shim.js'].forEach( | |
+ ['/production/communication_iframe.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 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/. | |
# check direct delivery email via localhost:25 to http://restmail.net | |
import base64 | |
import hashlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 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/. | |
# check delivery of stage_user email to http://restmail.net | |
import base64 | |
import hashlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import os | |
import requests | |
# https://bugzilla.mozilla.org/show_bug.cgi?id=781838 | |
# - POSTs MUST never redirect | |
# - POST over non-SSL MUST fail 400 Bad Non-SSL | |
# - GETs to the old domains MUST redirect to the new domain | |
# - www. MUST always redirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* 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/. */ | |
// | |
// Two switches to control how this runs: | |
// 1) VISIT_PERSONA=1 - Load the login.dev.anosrep.org first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# You may of course prefer not to trust this script and do the below | |
# manually, step by step, with an editor, etc., ;-). | |
# | |
# make /system/bin writable | |
# | |
DISK_DEVICE=`adb shell mount | grep '/system' | awk '{ print $1 }'` | |
adb shell "mount -o remount,rw $DISK_DEVICE /system" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
$| = 1; | |
# Stupid hack to track response times with b2g requests. | |
# You need to set 'export NSPR_LOG_MODULES=timestamp,cookie:5,nsSocketTransport:5,nsHttp:5' | |
# in /system/bin/b2g.sh. See https://gist.github.com/4490638 (but probably will | |
# want to remove the busybox section, installed from /home/jrgm ;-) ). | |
# | |
# usage: `adb logcat | tee /tmp/raw.txt | perl thisfile.pl` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Count the tcp socket states from `ss(8)` | |
// usage: `while [ 1 ]; do ss -tanp | node ~/parse-ss-localports.js; sleep 5; done` | |
var _ = require('underscore'); | |
var FIELDS = { STATE: 0, RECVQ: 1, SENDQ: 2, LOCAL: 3, REMOTE: 4 }; | |
function uniqueEphemeral(list) { | |
return _.uniq(list).filter(isEphemeral).length; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exercise the local ephemeral port range and see if it's exhausted | |
// usage: `while [ 1 ]; do node ~/grab-a-socket.js; sleep 1; done` | |
var net = require('net'); | |
var options = { | |
port: 63300, | |
host: '127.0.0.1' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Measure time and responses | |
// usage: while [ 1 ]; do node sc.js; sleep 5; done | |
// or: while [ 1 ]; do SC_HEARTBEAT=1 node sc.js; sleep 5; done | |
var http = require('http'); | |
var path, heartbeat; | |
if (process.env.SC_HEARTBEAT) { | |
heartbeat = true; | |
path = '/__heartbeat__'; |
OlderNewer