Skip to content

Instantly share code, notes, and snippets.

View mranney's full-sized avatar

Matt Ranney mranney

View GitHub Profile
GNU grep compiled on my MacBook Pro as "ggrep":
mranney-C02N31E1FD57:~$ time ggrep -E '^a(b|c)?' /usr/share/dict/words > /dev/null
real 0m0.020s
user 0m0.016s
sys 0m0.003s
mranney-C02N31E1FD57:~$ time grep -E '^a(b|c)?' /usr/share/dict/words > /dev/null
real 0m0.106s
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mjr-uber-mbp:~$ npm install -g http_trace
\
> [email protected] install /usr/local/lib/node_modules/http_trace/node_modules/pcap/node_modules/socketwatcher
> node-gyp rebuild
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
SOLINK_MODULE(target) Release/socketwatcher.node
SOLINK_MODULE(target) Release/socketwatcher.node: Finished
> [email protected] install /usr/local/lib/node_modules/http_trace/node_modules/pcap
function SomeClass() {
this.version = null;
this.header_length = null;
this.header_bytes = null;
this.diffserv = null;
this.total_length = null;
this.identification = null;
this.flags = {};
this.fragment_offset = null;
this.ttl = null;
root@sjc1-srv-03:/usr/ports/sysutils/lsof # make
===> Building for lsof-4.88.e_1,8
--- version.h ---
--- lib/liblsof.a ---
--- dnode2.o ---
--- version.h ---
Constructing version.h
--- lib/liblsof.a ---
(cd lib; /usr/bin/make DEBUG="-O2" CFGF="-pipe -fno-omit-frame-pointer -fno-strict-aliasing -fno-omit-frame-pointer -DHASTASKS -DHAS_PAUSE_SBT -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHAS_FILEDESCENT -DHASWCTYPE_H -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_VM_MEMATTR_T -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB -DNEEDS_BOOLEAN_T -DFREEBSDV=10000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME -DLSOF_VSTR=\"10.0-RELEASE\"")
--- dnode2.o ---
Lately, I've been telling my kids about "yes, and..." and how that's funny.
Tonight, after a long and very drawn-out bedtime procedure, I laid down the law.
"OK guys, time to go to sleep."
"But daddy, we didn't get a bedtime drink."
I'm getting really frustrated at this point.
"Jesus, really?! It's 9:00. Come on.", I blurt out, more profane than I was intending.
http://hello.processing.org/display/#7965389
diff --git a/http_server/http_server.js b/http_server/http_server.js
index 505efad..368083c 100644
--- a/http_server/http_server.js
+++ b/http_server/http_server.js
@@ -442,7 +442,7 @@ function HTTP_Server(options) {
if (options.proxy_proto) {
this.server_type = "proxy";
// this.server = http.Server(new_client_wrapper);
- this.server = spdy.createServer(http.Server, { plain: true }, new_client_wrapper);
+ this.server = spdy.createServer(http.Server, { plain: true, timeout: 12 * 60 * 1000 }, new_client_wrapper);
mjr@mjr-01:~$ npm install sse4_crc32
npm http GET https://registry.npmjs.org/sse4_crc32
npm http 200 https://registry.npmjs.org/sse4_crc32
npm http GET https://registry.npmjs.org/sse4_crc32/-/sse4_crc32-1.1.3.tgz
npm http 200 https://registry.npmjs.org/sse4_crc32/-/sse4_crc32-1.1.3.tgz
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/nan/-/nan-0.6.0.tgz
dtrace -n 'syscall::writev:entry /execname == "node" && arg2 > 16/ { printf("iovcnt: %d", arg2); }' -n 'syscall::writev:return /execname == "node" && arg1 == -1 && errno == 22/ { printf("%s %s %d\\n", curpsinfo->pr_psargs, probefunc, errno); jstack(100, 8000); }'
1 10260 writev:entry iovcnt: 57
1 10261 writev:return node --nouse-idle-notification /voxer/server/node_router/node_router.js /voxer/ writev 22\n
libc.so.1`__writev+0x15
node`uv__write.part.5+0x18f
node`uv_write2+0x1b9
node`uv_write+0x35
node`_ZN4node10StreamWrap6WritevERKN2v89ArgumentsE+0x678
node`_ZN2v88internalL21Builtin_HandleApiCallENS0_12_GLOBAL__N_116BuiltinArgumentsILNS0_21BuiltinExtraArgumentsE1EEEPNS0_7IsolateE+0x157
<< internal code >>