Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dneufeld on github.
  • I am dale (https://keybase.io/dale) on keybase.
  • I have a public key whose fingerprint is 0F2B 1D9E 22B1 7A57 0156 EAA4 920B 6668 47E3 FB4D

To claim this, I am signing this object:

; vim: filetype=clojure
(logging/init :file "/var/log/riemann/riemann.log")
; Listen on the local interface over TCP (5555), UDP (5555), and websockets
; (5556)
(let [host "0.0.0.0"]
(tcp-server :host host)
(udp-server :host host)
(ws-server :host host))
@dneufeld
dneufeld / gist:5226469
Created March 23, 2013 04:38
jquery on Cloudflare CDNJS versus Google Hosted APIs
#runs avg response time | avg dns | avg connect | avg ping round trip
jquery on CDNJS 1105 187ms 58ms 38ms 27ms
jquery on Google Hosted APIs 1120 219ms 30ms 39ms 38ms
Amsterdam, NL - DTAG
Breakdown # Runs Avg Webpage Response (ms) # Test Failures Avg Response (ms) Avg DNS (ms) Avg Connect (ms) Avg Wait (ms) Avg Load (ms) Avg Ping Round Trip (ms)
jquery on cloudflare cdnjs 12 53 NA 53 7 9 18 18 8
jquery on google hosted apis 12 52 NA 52 9 10 9 24 8
Amsterdam, NL - Level 3
@dneufeld
dneufeld / diff key_value_to_redis.py
Created November 17, 2011 17:29
redislookup.py patch to use redis hash storage functionality
25,26c25,27
< r.set(row[0], row[1])
<
---
> mapping = { header[1] : row[1], header[2] : row[2] }
> r.hmset(row[0], mapping)
>
29a31
>
[Sun, 06 Mar 2011 04:07:19 +0000] INFO: Upgrading package[sudo] version from 1.7.2p1-1ubuntu5 to 1.7.2p1-1ubuntu5.3
[Sun, 06 Mar 2011 04:07:19 +0000] DEBUG: Executing apt-get -q -y install sudo=1.7.2p1-1ubuntu5.3
: stdout
[nsm_server] [Sun, 06 Mar 2011 04:07:25 +0000] DEBUG: ---- Begin output of apt-get -q -y install sudo=1.7.2p1-1ubuntu5.3 ----
[Sun, 06 Mar 2011 04:07:25 +0000] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
sudo
1 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.