Skip to content

Instantly share code, notes, and snippets.

@mwunsch
Last active June 23, 2018 17:41
Show Gist options
  • Save mwunsch/5623048 to your computer and use it in GitHub Desktop.
Save mwunsch/5623048 to your computer and use it in GitHub Desktop.
Random Avatar Generator
curl -s 'http://realbusinessmen.tumblr.com/api/read?type=photo&num=50' | ruby -r'rexml/document' -e 'puts REXML::Document.new(STDIN).elements["tumblr/posts"].to_a.shuffle.pop.map(&:text)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment