Skip to content

Instantly share code, notes, and snippets.

@davidas13
Last active July 12, 2020 01:20
Show Gist options
  • Select an option

  • Save davidas13/be11908fdcc1afe924cd39e262ad8b08 to your computer and use it in GitHub Desktop.

Select an option

Save davidas13/be11908fdcc1afe924cd39e262ad8b08 to your computer and use it in GitHub Desktop.
#!/bin/sh
IP_PUBLIC=$(dig ipinfo.io/ip +short)
echo "\n=====:: MY IP PUBLIC ::=====\n"
curl -s ipinfo.io | python -c "exec(\"import sys\nimport json\nfor k, v in json$
echo "\n============================\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment