Requirement
You need to install brew and cURL first, open terminal, paste this and press enter :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
Then once brew is installed, write :
brew install curl
Edit the script as you wish
Replace internet ip
with whatever text you want, if one day, it's not working anymore, change ifconfig.me
with one of the following :
ident.me
tnx.nl/ip
icanhazip.com
ipecho.net/plain
ip.appspot.com
whatsmyip.akamai.com
HF :)