Skip to content

Instantly share code, notes, and snippets.

@benlovell
Created April 16, 2013 10:53
Show Gist options
  • Save benlovell/5395042 to your computer and use it in GitHub Desktop.
Save benlovell/5395042 to your computer and use it in GitHub Desktop.
Simple statsd fake
require "socket"
sock = UDPSocket.new
sock.bind("127.0.0.1", 8125)
loop do
p sock.recvfrom(128)[0]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment