Skip to content

Instantly share code, notes, and snippets.

@loisaidasam
Created July 24, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loisaidasam/9360de9b627b6a45bad74f714f233094 to your computer and use it in GitHub Desktop.
Save loisaidasam/9360de9b627b6a45bad74f714f233094 to your computer and use it in GitHub Desktop.
Get the URL of a retriever from dog.ceo
#!/bin/bash
# Requires `curl` and `jq`
# Nice use case: $ open "$(retriever-pic)"
curl -Ss "https://dog.ceo/api/breed/retriever/images/random" | jq -r '.message'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment