1001 nights

 tech  Comments Off on 1001 nights
Dec 162013
 
1001 nights

My main server/gateway/everything finally passed the 1000 day uptime mark, a first for me (at home, at least!) $ uptime 23:17:43 up 1001 days, 3:06, 2 users, load average: 0.07, 0.03, 0.01 Of course… being up all that time means an older kernel that can’t be upgraded (without rebooting, at least), an old creaky out-of-date OS… etc. But still. Nice job ubuntu folks, at least once upon a time….

OMG, finally!

 code, mac, tech  Comments Off on OMG, finally!
Feb 182013
 
OMG, finally!

I’ve waited for a over a decade, but finally – per process packet tracing on the mac (mountain lion.) For example, finding out the traffic that a python script sends via UDP and the return (both python programs on the same machine); the first sends “foo”, the server sends what it got plus “bar”: # dtrace -n ‘syscall::sendto*:entry /execname == "Python"/ { printf("%s sock=%d sockadd=%x buffer[%d]=%s",execname, arg0, arg4, arg2, […]