Skip to content

Instantly share code, notes, and snippets.

View wlaurance's full-sized avatar
🎯
Focusing

Will Laurance wlaurance

🎯
Focusing
View GitHub Profile
@wlaurance
wlaurance / coffeetojson.sh
Created February 29, 2012 21:47 — forked from aral/coffeetojson.sh
CoffeeScript to JSON script for OS X
coffee --print --compile $1.coffee | sed '1s/^.//' | sed 's/ });/}/' | sed "s/\([^ '\"].*[^ '\"]\):/\"\1\":/" > $1.json
#/bin/bash
rm `find |grep "~"$`
while (true) {
process.nextTick(function() {
return console.log('this should never print');
});
}
@wlaurance
wlaurance / gist:5108543
Created March 7, 2013 14:52
At least Comcast is pretty fast
ping google.com
PING google.com (74.125.228.71) 56(84) bytes of data.
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=1 ttl=55 time=12.9 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=2 ttl=55 time=13.7 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=3 ttl=55 time=13.5 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=4 ttl=55 time=13.1 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=5 ttl=55 time=16.2 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=6 ttl=55 time=13.0 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=7 ttl=55 time=14.6 ms
64 bytes from iad23s07-in-f7.1e100.net (74.125.228.71): icmp_req=8 ttl=55 time=14.6 ms
@wlaurance
wlaurance / 1drone
Last active December 14, 2015 15:39
t3mp.us drone testing
jitsu cloud
info: Welcome to Nodejitsu wlaurance
info: jitsu v0.12.3, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command cloud
info: Fetching app tempus
info: Viewing cloud info for tempus
data: {
data: provider: 'joyent',
data: ram: 256,
jitsu deploy
info: Welcome to Nodejitsu wlaurance
info: jitsu v0.12.3, node v0.8.22
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in index.js
WARN unmet dependency /home/will/workspace/node-projects/tempus/node_modules/appygram requires request@'2.11.1' but will load
WARN unmet dependency /home/will/workspace/node-projects/tempus/node_modules/request,
WARN unmet dependency which is version 2.14.0
info: Creating snapshot 0.0.3
@wlaurance
wlaurance / cool
Created March 14, 2013 21:09
18K request per second 1M requests in 54.590 seconds
ab -c 1000 -n 1000000 localhost:3000/index.html
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100000 requests
Completed 200000 requests
Completed 300000 requests
Completed 400000 requests
@wlaurance
wlaurance / test.js
Created March 28, 2013 20:00
bouncing marks
var mark = process.env.MARK || "-",
window = process.env.WINDOW || 100,
start = process.env.START || 0,
down = true;
var canvas = "";
for(var m = 0; m < window; m++){
canvas += " ";
}
@wlaurance
wlaurance / handlebars.linkify.js
Last active December 16, 2015 19:00 — forked from ryndel/handlebars.linkify.js
Change for ember
Ember.Handlebars.registerBoundHelper('linkify', function (text) {
text = text.replace(/(https?:\/\/\S+)/gi, function (s) {
return '<a href="' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)@(\w+)/gi, function (s) {
return '<a href="http://twitter.com/' + s + '">' + s + '</a>';
});
text = text.replace(/(^|)#(\w+)/gi, function (s) {
@wlaurance
wlaurance / pubkey
Last active December 18, 2015 04:29
pgp public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
mQINBFGxDbEBEACvP/BrzSj4gucAS+t8Vk94MhG5gnrP66bCYD+ZgAAYIj3RFUb6
mipylCkkImW5QkeMBunJgu9SGstOgT6TtQ/Bop+LG9ivtUG4K77Me6+q1+EwSndP
yKLcO1h2+k3CHdjYop/JYqHQOMiiQg3nlkroqZfhVVnk0ENXLL0vOO/xFYR0A93J
JlJVUPLG+L3n7z+yWmKf21eRNR7f2tDXLeU9SAth3XCjStvHhTKyRK6UusEbIXZG
/4E9xSc/n9A4CFbPf186DdueJ2Jn04OxskTerz7WR7vugCm48VQ4EczbpODYaKmB
j2A2Rav2OYXqU8xqPlcCFImXHcPRWU0txsJVvQKx2uiYNmdNGtSqQaAEi9CFIF6P
Ab0vHAgYQb0rhxrdl9jVNw2ahZjESYIfhro3YrqPvjIQTU7k2nV2rHDuxwGnjd4f