Última atividade 1705433153

Geoiplookup bash function using geoiplookup.io

Jarno Rankinen revisou este gist 1616352920. Ir para a revisão

Sem alterações

Jarno Rankinen revisou este gist 1616352891. Ir para a revisão

1 file changed, 0 insertions, 0 deletions

gistfile1.txt renomeado para geoiplookup.sh

Arquivo renomeado sem alterações

Jarno Rankinen revisou este gist 1612899335. Ir para a revisão

1 file changed, 5 insertions

gistfile1.txt(arquivo criado)

@@ -0,0 +1,5 @@
1 + ## depends on curl and jq
2 + function geoiplookup() {
3 + GEOIPURL=https://json.geoiplookup.io/"$1"
4 + curl -s $GEOIPURL | jq '.ip, .org, .hostname, .city, .country_name'
5 + }
Próximo Anterior