Know your Global IP from terminal
I read an article on life-hacker , which was the thing i was using from past few months something very much similar , but any-ways , he speaks only about how it works , i strongly feel we rahter make a command , but how ??!! i am sharing it ...
Making your own command called "myip"
$ alias myip='curl -s myip.dk |grep '"Box"' | egrep -o '[0-9.]+''
$ alias myip='wget -qO- whatismyip.org'
or u can also use wget -O - -q instead of curl .
Now , $ myip will give you your global IP
Recent blog posts
- watir-webdriver web inspector
- gem list to gemfile
- Packing ruby2.0 on debian.
- Made it into The Guinness Book!
- to_h in ruby 2.0
- Filter elements by pattern jQuery.
- Better HTML password fields for mobile ?
- Grayscale image when user offline
- nth-child CSS pseudo-class Christmas colors
- EventEmitter in nodejs