Skip to content

Instantly share code, notes, and snippets.

View smmtaheri's full-sized avatar

Mohammad Taheri smmtaheri

  • Tehran
View GitHub Profile
@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