Skip to content

Instantly share code, notes, and snippets.

# version 3 (2012-06-07)
if [ -n "$TESTSWARM_DEST" ]
then
dest=$TESTSWARM_DEST
else
dest=
#!/bin/sh
# Make a static clone the working copy of a Jenkins build
# to a public directory for browser testing.
# Usage:
# From within the Jenkins working copy directory.
#
# version 3 (2012-06-07)
var log = function(l) {
if (console) {
console.log.apply(console, arguments);
}
};
@jwalsh
jwalsh / gist:5086746
Last active December 14, 2015 12:29 — forked from palexander/gist:2975305
LIB=${HOME}/lib
BIN=${HOME}/bin
# Install Protocol Buffers
wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2
tar -xf protobuf-2.4.1.tar.bz2
cd protobuf-2.4.1
./configure --prefix=${HOME}
make
make install
// Assume bkContinue is functionality that has a synchronous
// dependency on the tag
// Add a script request with an onload
window.bk_loaded = false;
function bkLoaded() {
// The interval / timeout clearing could be moved here
window.bk_loaded = true;
}
// Purpose: Prevent a tag request from taking more than .5s.
// Workflow for timeout state
// script msft-timeout.js:13
// 9 bk_monitor msft-timeout.js:21
// bk_timeout msft-timeout.js:29
// bkContinue
// Add a script request with an onload
window.bk_loaded = false;
window.bk_started = new Date();
<html>
<head>
<title>timeout</title>
</head>
<body>
<h1>Timeout JavaScript</h1>
<p>Expect: You should see a 2s request timeout.</p>
<script src="msft-timeout.js"></script>
</body>
</html>
<img id="tpTest" src="http://www.naicookietest.net/third_party_test.php?nocache=1368123583325"><iframe id="tpFrame" name="tpFrame" src="http://www.naicookietest.net/third_party_test.php?validate&amp;rd=http%3A%2F%2Fwww.networkadvertising.org&amp;nocache=1368123584497"></iframe><iframe id="tokenFrame-158-533" name="tokenFrame-158-533" src="http://optout.mookie1.com/optout/tfsm/tfsm-optout-nai-rm.html?participant_id=01580533&amp;action_id=3&amp;rd=http%3A%2F%2Fwww.networkadvertising.org&amp;nocache=1368123589418"></iframe><iframe id="tokenFrame-42-332" name="tokenFrame-42-332" src="http://optout.33across.com/api/?participant_id=00420332&amp;action_id=3&amp;rd=http%3A%2F%2Fwww.networkadvertising.org&amp;nocache=1368123589438"></iframe><iframe id="tokenFrame-101-333" name="tokenFrame-101-333" src="http://d.p-td.com/r/optout?participant_id=01010333&amp;action_id=3&amp;rd=http%3A%2F%2Fwww.networkadvertising.org&amp;nocache=1368123589464"></iframe><iframe id="tokenFrame-97-209" name="tokenFrame-97-209" src="http://a
var docs = [
"", // index 0
"version", // index 1
"", // index 2
"", // index 3
"", // index 4
"", // index 5
"", // index 6
"", // index 7
"", // index 8
var docs = [
"", // index 0
"version", // index 1
"", // index 2
"", // index 3
"", // index 4
"", // index 5
"", // index 6
"", // index 7
"", // index 8