Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Created March 18, 2013 22:47
Show Gist options
  • Select an option

  • Save sentientmonkey/5191581 to your computer and use it in GitHub Desktop.

Select an option

Save sentientmonkey/5191581 to your computer and use it in GitHub Desktop.
require 'zlib'
require 'json'
Zlib::GzipReader.open(ARGV[0]) do |gz|
foo = "[#{gz.read}]"
puts JSON.parse(foo)[0].to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment