Currency conversion through Google
curl --silent 'http://www.google.com/finance/converter?a=1&from=USD&to=INR' | grep "<span class=bld>.*</span>" | sed -e "s/.*<span class=bld>\(.*\) INR<\/span>.*/\1/" | awk '{printf "₹ %.2f\n", $1}'Weather through Yahoo!
file:///tmp/weather-urbana.pngecho "Urbana";curl --silent "http://weather.yahoo.com/united-states/illinois/urbana-2510436/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather-urbana.png\export TZ=America/Chicago;echo "`date +'%a %d, %l:%M %p'`";unset TZ;YC=`curl --silent "http://weather.yahooapis.com/forecastrss?p=USIL1191&u=f" | grep "yweather:condition"`;TX=`echo $YC | awk 'BEGIN { FS = "[\"]" } ; /yweather:condition/ { print $2 } '`;YCF=`echo $YC | awk 'BEGIN { FS = "[\"]" } ; /yweather:condition/ { print $6 } '`;YCC=`echo $YCF | awk '{printf "%.0f\n", (($1-32)*5/9)}'`;TX="$TX\n$YCF ℉ / $YCC ℃";echo $TX;Calendar though Command Line
cal_head='cal | head -1'; cal_tail='cal | tail -7'; today='date "+%e"'; echo "$cal_head"; echo "${cal_tail/${today}/\033[1;32m${today}\033[0m}";iCal Events through icalBuddy
/usr/local/bin/icalBuddy -npn -nc -b "" -iep "title,datetime" -ps "| |" -df "%d" eventsToday+31Processes though Command Line
ps -amcwwwxo "command %mem %cpu" | grep -v grep | head -10PDNSD Cache DNS Server Logs: PDNSD is a local dns server which caches dns records. It also helps me keep a log of all websites called by all applications.
WebServer Status: I have actually tied this up with Prey configured to my personal website.
7
Currency, Weather, Calendar, iCal, Processes, PDNSD, Server Status
Posted in Collections by parvez 138 days ago