Skip to content

Instantly share code, notes, and snippets.

@xtaci
Created October 11, 2023 05:48
Show Gist options
  • Save xtaci/ab9213fae4312baf83b1ebfae807ca3f to your computer and use it in GitHub Desktop.
Save xtaci/ab9213fae4312baf83b1ebfae807ca3f to your computer and use it in GitHub Desktop.
update your public ip address as a commit to github
#!/bin/sh
while [ true ]
do
curl ifconfig.me > ip.txt
DATE=`date`
git commit -a -m "update ip on $DATE"
git push
sleep 600
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment