Geolocation for an IP or URL.
#!/bin/sh geoip(){ ip=$1 || curl https://icanhazip.com curl "https://freegeoip.net/json/${ip}" } geoip "$@"