Skip to content

Instantly share code, notes, and snippets.

@marekkaczkowski
Created June 23, 2020 11:48
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 marekkaczkowski/42654872220d6d314ae97e2b63de8e19 to your computer and use it in GitHub Desktop.
Save marekkaczkowski/42654872220d6d314ae97e2b63de8e19 to your computer and use it in GitHub Desktop.
Bash tips & tricks
#!/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