Commits

Denilson Sá  committed 7f7f769

Adding a dead-simple Gravatar URL generator.

  • Participants
  • Parent commits f701387

Comments (0)

Files changed (1)

+#!/bin/bash
+
+if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ] ; then
+	echo 'Usage: gravatar.sh someone@example.com'
+	echo 'See also: http://en.gravatar.com/site/implement/images/'
+	exit 1
+fi
+
+MD5=`echo -n 'denilsonsa@gmail.com' | md5sum | sed 's/ \+- *$//'`
+echo "http://www.gravatar.com/avatar/${MD5}.jpg?s=512"