Skip to content

Instantly share code, notes, and snippets.

@LennyLizowzskiy
Created August 13, 2024 10:46
Show Gist options
  • Save LennyLizowzskiy/c77ab131d4f56bc67befc7999337366a to your computer and use it in GitHub Desktop.
Save LennyLizowzskiy/c77ab131d4f56bc67befc7999337366a to your computer and use it in GitHub Desktop.
IP info, usage: `ip-info.sh` or `ip-info.sh <IP-ADDR>`
#!/usr/bin/env bash
ARG=$@
curl -s http://ip-api.com/json/$ARG?fields=66846719 | jq -r 'to_entries[] | "\u001b[32m\(.key)\u001b[0m: \u001b[34m\(.value)\u001b[0m"'
@LennyLizowzskiy
Copy link
Author

curl https://gist.githubusercontent.com/LennyLizowzskiy/c77ab131d4f56bc67befc7999337366a/raw/57db896e6601c7af715e11e8cfa8a713483581e3/ip-info.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment