My bad
This commit is contained in:
parent
7fa5fccedf
commit
ff47473e0b
@ -192,3 +192,15 @@ function ramdisk() {
|
||||
|
||||
sudo mount -t tmpfs -o size="$size" tmpfs "$HOME/ramdown"
|
||||
}
|
||||
|
||||
ipin() {
|
||||
local ip=$1
|
||||
local endpoint="https://ipinfo.io"
|
||||
# Append IP to the endpoint if provided
|
||||
if [[ -n $ip ]]; then
|
||||
endpoint+="/$ip"
|
||||
fi
|
||||
endpoint+="/json?token=4ea2457429bf23"
|
||||
# Make the API call and prettify the JSON response
|
||||
curl -s "$endpoint" | jq .
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user