Add new scripts

This commit is contained in:
2022-03-18 00:38:39 +03:00
parent 5630243ef1
commit d051d7ddca
19 changed files with 147 additions and 116 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash
ip=$(curl "https://api.ipify.org" 2>/dev/null)
res=$(curl -s "http://ip-api.com/json/$ip" 2>/dev/null)
res=$(curl -s "http://ip-api.com/json/" 2>/dev/null)
# echo $res | jq '.'
echo $res | jq -r -j '.city, ", ", .country, "\n"'