Skip to content

Instantly share code, notes, and snippets.

@acosonic
Last active May 26, 2023 17:03
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 acosonic/082407f0b73e8defa759b0c1795f733a to your computer and use it in GitHub Desktop.
Save acosonic/082407f0b73e8defa759b0c1795f733a to your computer and use it in GitHub Desktop.
Make pubip binary which determinates public ip
#!/bin/bash
wget -qO- http://acosonic.com/ip.php && echo -e "\r"
#you can use shc and compile this like shc -vrf pubip.sh -o pubip && mv pubip ~/bin
#then just use it as pubip from anywhere or move to system bin...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment