Skip to content

Instantly share code, notes, and snippets.

@raggi
Created August 19, 2010 20:45
Show Gist options
  • Save raggi/538869 to your computer and use it in GitHub Desktop.
Save raggi/538869 to your computer and use it in GitHub Desktop.
A = [8, -21, 8, 2].zip(self.inspect.scan(/./)).map { |a,b| (b[0] - a).chr }.join
B = <<-B
011010000111010001110100011100000011101000101111001011110110011101101001011101
000110100001110101011000100010111001100011011011110110110100101111011000100111
001001111001011000010110111001110111011011110110111101100100011100110010111101
101011011010010111010001110100011110010010111101110010011000010111011100101111
011011010110000101110011011101000110010101110010001011110110001001101001011011
10001011110110101101101001011101000111010001111001
B
require %w[6f70656e2d757269].pack('H*')
send A, open([B.split.join].pack('B*')).read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment