Skip to content

Instantly share code, notes, and snippets.

@bartvdbraak
Created June 20, 2023 14:33
Show Gist options
  • Save bartvdbraak/4dd72114d5152d1561b9ed758a14dde4 to your computer and use it in GitHub Desktop.
Save bartvdbraak/4dd72114d5152d1561b9ed758a14dde4 to your computer and use it in GitHub Desktop.
Quick one-liner that will print any changes of the public IP of your machine
while true; do result=$(curl -s ifconfig.wearetriple.com); if [[ "$result" != "$previous_result" ]]; then echo "$(date) $result"; previous_result=$result; fi; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment