Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am alex-handley on github.
  • I am alex_handley (https://keybase.io/alex_handley) on keybase.
  • I have a public key ASCBqssRHmO2RvdZ8WrnSxh6gz2ZFQHQeA7BBcf7n-RgXAo

To claim this, I am signing this object:

@alex-handley
alex-handley / decode_session_cookie.rb
Last active October 28, 2015 13:41 — forked from pdfrod/decode_session_cookie.rb
A simple script to decode Rails 4 session cookies
@alex-handley
alex-handley / gist:5173776
Created March 15, 2013 22:52
A exception wrapper to collect both stack traces. e.g. this error was thrown here -- WRAPPED BACKTRACE -- the original error was thrown there Source: http://www.drmaciver.com/2013/03/a-manifesto-for-error-reporting/
class A
def self.b
begin
raise TypeError
rescue => e
raise MyLibrarySpecificException.new(e)
end
end
end