While working on a Gravatar integration. I needed to generate a md5 hash of the test email address. Surprisingly enough, this was not as intuitiv as I though it would be. Keeping a reference here for my future self:
$ echo -n "myemailadress@example.com" | md5sum
Reference: