Skip to content

Instantly share code, notes, and snippets.

info: Creating snapshot 0.0.0-12
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/trindaz/schema-website/snapshots/0.0.0-12',
debug: headers:
debug: { Authorization: '*****************************************************************',
debug: 'Content-Type': 'application/octet-stream',
debug: 'Content-Length': 838178 },
debug: timeout: 240000 }
info Uploading: [=============================] 100%
debug: { statusCode: 500,
describe("d1", function(){
function step1(){
describe("A test description", function(){
it("A test it", function(done){
step2();
done();
})
})
};
var dgram = require('dgram');
var client_address = "0.0.0.0"
var client_port = 9002;
var server_address = "0.0.0.0"
var server_port = 9001
var maxWaitTimeForResponse = 6000;
@Trindaz
Trindaz / evented it tests (broken)
Last active December 10, 2015 20:48
evented it tests (broken)
var dgram = require('dgram');
var client_address = "0.0.0.0"
var client_port = 9002;
var server_address = "0.0.0.0"
var server_port = 9001
server_socket = dgram.createSocket('udp4');
server_socket.on('listening', function() { console.log("Server is listening"); });
@Trindaz
Trindaz / gist:3735444
Created September 17, 2012 03:48
Inject JQuery to any webpage at runtime
var script=document.createElement('script');
script.attributes["src"]="http://code.jquery.com/jquery-latest.min.js"
var head=document.getElementsByTagName('head')[0];
head.appendChild(script);
@Trindaz
Trindaz / gist:3082686
Created July 10, 2012 11:03
2012-07-10 batchSize 40, hubCount 10, batchCount 180
This file has been truncated, but you can view the full file.
92, and still waiting: 808 max ever: 2243; 0 since last response, max: 799; roundTrip: 2170, max: 11428; erros so far: 0, current: undefined
id: 66251, 67200 so far, got response from 66393, and still waiting: 807 max ever: 2243; 1 since last response, max: 799; roundTrip: 3275, max: 11428; erros so far: 0, current: undefined
id: 66122, 67200 so far, got response from 66394, and still waiting: 806 max ever: 2243; 0 since last response, max: 799; roundTrip: 3298, max: 11428; erros so far: 0, current: undefined
id: 66342, 67200 so far, got response from 66395, and still waiting: 805 max ever: 2243; 0 since last response, max: 799; roundTrip: 3261, max: 11428; erros so far: 0, current: undefined
id: 66403, 67200 so far, got response from 66396, and still waiting: 804 max ever: 2243; 1 since last response, max: 799; roundTrip: 2248, max: 11428; erros so far: 0, current: undefined
id: 66425, 67200 so far, got response from 66397, and still waiting: 803 max ever: 2243; 0 since last response, max: 799; roundTrip: 22
@Trindaz
Trindaz / gist:3082597
Created July 10, 2012 10:41
2012-07-10 batchSize 30, hubCount 10, batchCount 30
This file has been truncated, but you can view the full file.
ar, got response from 3842, and still waiting: 5158 max ever: 8363; 0 since last response, max: 4666; roundTrip: 38948, max: 57132; erros so far: 930, current: undefined
id: 7120, 9000 so far, got response from 3843, and still waiting: 5157 max ever: 8363; 0 since last response, max: 4666; roundTrip: 38949, max: 57132; erros so far: 930, current: undefined
id: 6971, 9000 so far, got response from 3844, and still waiting: 5156 max ever: 8363; 1 since last response, max: 4666; roundTrip: 38995, max: 57132; erros so far: 930, current: undefined
id: 7134, 9000 so far, got response from 3845, and still waiting: 5155 max ever: 8363; 0 since last response, max: 4666; roundTrip: 38949, max: 57132; erros so far: 930, current: undefined
id: 6988, 9000 so far, got response from 3846, and still waiting: 5154 max ever: 8363; 0 since last response, max: 4666; roundTrip: 38992, max: 57132; erros so far: 930, current: undefined
id: 6977, 9000 so far, got response from 3847, and still waiting: 5153 max ever: 8363; 1 since las
@Trindaz
Trindaz / gist:3082628
Created July 10, 2012 10:48
2012-07-10 batchSize 10, hubCount 10, batchCount 180
This file has been truncated, but you can view the full file.
2537; roundTrip: 4254, max: 163125; erros so far: 7207, current: undefined
id: 17574, 18000 so far, got response from 12881, and still waiting: 5119 max ever: 7049; 14 since last response, max: 12537; roundTrip: 8335, max: 163125; erros so far: 7207, current: undefined
id: 17658, 18000 so far, got response from 12882, and still waiting: 5118 max ever: 7049; 13 since last response, max: 12537; roundTrip: 7333, max: 163125; erros so far: 7207, current: undefined
id: 17704, 18000 so far, got response from 12883, and still waiting: 5117 max ever: 7049; 0 since last response, max: 12537; roundTrip: 6326, max: 163125; erros so far: 7207, current: undefined
id: 14512, 18000 so far, got response from 12884, and still waiting: 5116 max ever: 7049; 1 since last response, max: 12537; roundTrip: 39346, max: 163125; erros so far: 7207, current: undefined
id: 17961, 18000 so far, got response from 12885, and still waiting: 5115 max ever: 7049; 0 since last response, max: 12537; roundTrip: 4283, max: 163125; erros so far: 7
@Trindaz
Trindaz / gist:3078291
Created July 9, 2012 19:10
2012-07-09 spokeo - processes 8, batchSize 20, batchCount 180, niceness -10
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
id: 4, 20 so far, got response from 1, and still waiting: 19 max ever: 19; 0 since last response, max: 0; roundTrip: 913, max: 913; erros so far: 0, current: undefined
id: 9, 20 so far, got response from 2, and still waiting: 18 max ever: 19; 119 since last response, max: 119; roundTrip: 1017, max: 1017; erros so far: 0, current: undefined
id: 5, 20 so far, got response from 3, and still waiting: 17 max ever: 19; 2 since last response, max: 119; roundTrip: 1034, max: 1034; erros so far: 0, current: undefined
id: 10, 20 so far, got response from 4, and still waiting: 16 max ever: 19; 0 since last response, max: 119; roundTrip: 1019, max: 1034; erros so far: 0, current: undefined
Starting batch 1
id: 1, 40 so far, got response from 5, and still waiting: 35 max ever: 35; 41 since last response, max: 119; roundTrip: 1098, max: 1098; erros so far: 0, current: undefined
id: 3, 40 so far, got response from 6, and still
@Trindaz
Trindaz / gist:3078101
Created July 9, 2012 18:39
2012-07-09 spokeo - processes 8, batchSize 10, batchCount 180
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
id: 7, 10 so far, got response from 1, and still waiting: 9 max ever: 9; 0 since last response, max: 0; roundTrip: 941, max: 941; erros so far: 0, current: undefined
id: 8, 10 so far, got response from 2, and still waiting: 8 max ever: 9; 22 since last response, max: 22; roundTrip: 963, max: 963; erros so far: 0, current: undefined
id: 1, 10 so far, got response from 3, and still waiting: 7 max ever: 9; 5 since last response, max: 22; roundTrip: 1017, max: 1017; erros so far: 0, current: undefined
Starting batch 1
id: 2, 20 so far, got response from 4, and still waiting: 16 max ever: 16; 43 since last response, max: 43; roundTrip: 1022, max: 1022; erros so far: 0, current: undefined
id: 4, 20 so far, got response from 5, and still waiting: 15 max ever: 16; 30 since last response, max: 43; roundTrip: 1041, max: 1041; erros so far: 0, current: undefined
id: 10, 20 so far, got response from 6, and still waiting: 14