Skip to content

Instantly share code, notes, and snippets.

@zorbash
Created November 7, 2016 08:17
Show Gist options
  • Select an option

  • Save zorbash/581578c642c122294e54f4d48975d21a to your computer and use it in GitHub Desktop.

Select an option

Save zorbash/581578c642c122294e54f4d48975d21a to your computer and use it in GitHub Desktop.
gif abomination
curl -XGET 'http://api.giphy.com/v1/gifs/trending?api_key=dc6zaTOxFJmzC' \
| jq '.data | .[].images.original.url' \
| ruby -n -e 'puts $stdin.eof? ? nil : "<img src=#{$stdin.gets.chomp}/>"' \
| ruby -e 'puts "<!DOCTYPE html><html><head></head><body>#{$stdin.read}</body></html>"' \
| w3m -T text/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment