Skip to content

Instantly share code, notes, and snippets.

@Brunomm
Created February 22, 2020 12:11
Show Gist options
  • Save Brunomm/ba9de5fcf4e007b46561d2cfbeffaeeb to your computer and use it in GitHub Desktop.
Save Brunomm/ba9de5fcf4e007b46561d2cfbeffaeeb to your computer and use it in GitHub Desktop.
@base = "gqljb25kaXRpb26iT1KmZ3JvdXBzkoKpY29uZGl0aW9uom9yp2ZpbHRlcnORg6Njb2yqYmlydGhfZGF0ZaNvcGWlbW9udGijdmFsoTKCqWNvbmRpdGlvbqJvcqdmaWx0ZXJzkYOjY29srXNoYXJlX2NhcGl0YWyjb3BlsGdyZWF0ZXJvcmVxdWFsdG-jdmFspjUwMC4wMA"
def example_error
MessagePack.unpack( Base64.decode64( @base ) )
end
def example_success
MessagePack.unpack( Base64.urlsafe_decode64( @base ) )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment