Get Google PageRank From Shell
December 23rd, 2006
Domain name in, Google PageRank (toolbar value) out. Examples of usage:
[~]$ pr rubyonrails.com 8 [~]$ pr del.icio.us 8 [~]$ pr http://script.aculo.us 7 [~]$ pr dairon.net 4 [~]$ pr apple.com 10Read the rest of this entry
Mephisto Theme Called Sharp000
December 19th, 2006
This blog is powered by Mephisto and theme used here is my modification of Simpla theme by Phu Ly. It’s called Sharp000 (#000) and can be described as low-light eye-relaxing theme. Well, you see it on your own now…
You can freely use it. I hope it would be useful.
Direct download: http://dairon.net/assets/2006/12/19/sharp000-1.0.tar.gz (54K)
Your feedback is very appreciated :)
Domain Availability from Shell
December 14th, 2006
Example of usage:
[~]$ ava oohay fursplash.{net,org} waking{,-}beast{,.net}
- oohay.com
+ fursplash.net
- fursplash.org
+ wakingbeast.com
+ wakingbeast.net
+ waking-beast.com
+ waking-beast.net
Read the rest of this entry
Get Alexa Traffic Rank From Shell
December 6th, 2006
Here is a ruby script to get Alexa traffic rank for specified site.
1 #!/usr/bin/env ruby -w 2 3 if ARGV.empty? 4 puts <<-T 5 alexa rank checker by dairon 6 usage: alexa <url> 7 T 8 exit 9 end 10 11 12 13 url = ARGV[0] 14 rank = "-1" # no data 15 open( "http://alexa.com/data/details/traffic_details?url=", "r" ) do |f| 16 fstr = f.read 17 fstr.squeeze!(" ") 18 fstr =~ /Traffic Rank for(?:.+?)-->(.+?)<\/span>/ 19 break if $1.nil? 20 rank = $1.gsub(/<(.+?)>/, "").gsub(",","") 21 end 22 23 puts rank
IP Location on Google Maps
December 6th, 2006
IP address or hostname on the input, detailed info and location on Google Maps on the output. Example of usage:
[~] lip nasa.gov . Hostname: nasa.gov . Country Code: US . Country Name: United States . Region: AL . Region Name: Alabama . City: Huntsville . Postal Code: 35812 . Latitude: 34.6325 . Longitude: -86.6527 . ISP: National Aeronautics and Space Association . Organization: National Aeronautics and Space Association . Metro Code: 691 . Area Code: 256 . Google Map: http://maps.google.com/maps?q=34.6325,+-86.6527&iwloc=A&hl=en open? y
Last line is a generated link to Google Maps location. Press y and it will be opened in your browser.

