Skip to content

Instantly share code, notes, and snippets.

@mrryanjohnston
Last active May 18, 2019 15:12
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 mrryanjohnston/f5ee07928ab0735a32cbfdb680b4ece3 to your computer and use it in GitHub Desktop.
Save mrryanjohnston/f5ee07928ab0735a32cbfdb680b4ece3 to your computer and use it in GitHub Desktop.
Script to return your public IP from duckduckgo
#!/bin/bash
curl -fs "https://api.duckduckgo.com/?q=ip&format=json" | jq -r '.Answer' | awk '{print $5}'
@mrryanjohnston
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment