Skip to content

Instantly share code, notes, and snippets.

View smmtaheri's full-sized avatar

Mohammad Taheri smmtaheri

  • Tehran
View GitHub Profile
@smmtaheri
smmtaheri / locof.sh
Created October 5, 2018 18:36
location of ip
#!/bin/bash
# Bash function to find location of an ip
# Example:
# $ locof 8.8.8.8
# US
# find your location when nothing is sent
# $ locof
# IR
# -c option for city
@smmtaheri
smmtaheri / ipof.sh
Last active August 18, 2018 12:03 — forked from arastu/ipof.sh
#!/bin/bash
# Googooli bash function for resolve a hostname to the first IP address or find your public ip address
# Example:
# $ ipof www.google.com
# 216.58.204.132
# find your public ip address when nothing is sent
# $ ipof
# x.x.x.x

Keybase proof

I hereby claim:

  • I am smmtaheri on github.
  • I am smmtaheri (https://keybase.io/smmtaheri) on keybase.
  • I have a public key ASAzmU3Eag_CzmDWS-yc7EtENIktpnq3jEBlnP1YsthlQAo

To claim this, I am signing this object: