Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created February 14, 2013 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotchpotch/4950546 to your computer and use it in GitHub Desktop.
Save hotchpotch/4950546 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'msgpack'
require 'pp'
while gets
line = $_.strip
begin
pp MessagePack.unpack(line)
rescue EOFError => e
warn e.to_s
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment