Created
June 23, 2020 11:48
-
-
Save marekkaczkowski/42654872220d6d314ae97e2b63de8e19 to your computer and use it in GitHub Desktop.
Bash tips & tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple GeoIP lookup | |
IPVI="https://ipvigilante.com/$(sed -e 's/^"//' -e 's/"$//' <<<"$(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com)")" && curl ${IPVI} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment