Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 160 Bytes
require 'zlib'
File.open(ARGV[1], "wb") do |out|
out.write("\x00\xFE")
out.write(Zlib::Deflate.deflate(File.read(ARGV[0]), Zlib::BEST_COMPRESSION))
end