Skip to content

Instantly share code, notes, and snippets.

@timuruski
Last active December 27, 2015 17:18
Show Gist options
  • Save timuruski/7360707 to your computer and use it in GitHub Desktop.
Save timuruski/7360707 to your computer and use it in GitHub Desktop.
This output is confusing to me.
$ ruby -rbase64 -e "puts Base64.encode64('foo:bar')"
> Zm9vOmJhcg==
$ echo "foo:bar" | base64
> Zm9vOmJhcgo=
$ curl -u foo:bar -v http://httpbin.org
> GET / HTTP/1.1
> Authorization: Basic Zm9vOmJhcg==
@stevedev
Copy link

stevedev commented Nov 7, 2013

Your gists make me sad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment