Skip to content

Instantly share code, notes, and snippets.

View pdehaan's full-sized avatar
🏠
Working from home

Peter deHaan pdehaan

🏠
Working from home
View GitHub Profile
#https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-appo
# eval (sed -n '2p' < file.txt)
# will evaluate the command on a given line of a file (i.e. line 2)
#==================================================
# NOTES
#==================================================
We are going to create the following entities:
function sendMsgToSW(){
sendMessage({
command: 'helloWorld',
url: 'foo'
}).then(function(val) {
// If the promise resolves, just display a success message.
writeLog('postMessage promise returned');
writeLog(val);
return val;
}).catch(console.error);
{
"name": "Push Testing",
"strategies": [
{
"name": "Single Serverz",
"description": "Single PushGo server, 2 sets of testers for peak of 200k connections.",
"container_sets": [
{
"name": "Test Cluster",
"instance_count": 1,
function loadPage(address, route, lang){
page.customHeaders = {'accept-language': lang};
var address = url + route;
var docLocator;
var fxaHeader;
if (page === 'signup'){
docLocator = 'sign-up';
fxaHeader = "fxa-signup-header";
}else if(page === 'signin'){