Created
February 7, 2014 14:07
-
-
Save Flowkap/8863173 to your computer and use it in GitHub Desktop.
Generate a gravatar from gravatar.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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