Skip to content

Instantly share code, notes, and snippets.

@Flowkap
Created February 7, 2014 14:07
Show Gist options
  • Save Flowkap/8863173 to your computer and use it in GitHub Desktop.
Save Flowkap/8863173 to your computer and use it in GitHub Desktop.
Generate a gravatar from gravatar.com
#/bin/sh!
# 1st parameter Value to hash!
# 2nd parameter resolution in pixel
# Script uses the gravatar api for default gravatar generation.
HASH=$(echo -n $1 | md5sum | awk '{ print $1 }')
xdg-open "http://www.gravatar.com/avatar/$HASH?f=y&s=$2&d=identicon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment