chore: updates here and there
This commit is contained in:
parent
ed190866f5
commit
05708570cb
14 changed files with 58 additions and 67 deletions
6
.local/bin/scripts/ip.me
Executable file
6
.local/bin/scripts/ip.me
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
API_ENDPOINT='http://ip-api.com/json/?fields=7876383'
|
||||
printf "%s" "$(curl "${API_ENDPOINT}" 2>/dev/null)" | jq -r '[ "IP: \(.query)", "Country: \(.country)", "City: \(.city)", "ISP: \(.isp)", "ASN: \(.as)" ][] | "\(.)"'
|
||||
|
||||
# vim: ft=bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue