For all cricket fans and PC freaks out there , this is delight script both cli and gui scripts are there in the source.
For cli : Just place the “crick” file in /bin with chmod +x and run crick command from anywhere in terminal to see the score card.
For GUI : Extract the file “crick-info-gui.tar.gz” from the source and cat README.
To download :source {click}
Fun with shell
June 27, 2009
June 27, 2009
Right click Format Media | USB | SDC | HDD and more
Posted by hemanthhm under Fun with shell, Shell scriptingLeave a Comment
Use this to format any media , including your HDD , pen drives , usb portables , memory cards and so on.Please note : Be careful while selecting the /dev/sd* in the list menu.
Tired this as there was a need to right click format on Ubuntu : Download here
June 23, 2009
Just came across a tool called “mtr” , it expands to “My trace Route”
June 22, 2009
Right click send-to-media or usb
Posted by hemanthhm under Fun with shell, install apps[4] Comments
Have you ever wished you had a right click send-to-media.
This scripts gives options to send files/folders to media that is mounted.
Send to USB , HDD , CD/DVD ROM any media that is mounted !!
I was hungry for something new and tried this , send to usd or any media that is mounted on the machine , have a look at : sendtomeida
June 22, 2009
Right click send-to-media or usb
Posted by hemanthhm under Fun with shell, install appsLeave a Comment
Have you ever wished you had a right click send-to-media.
This scripts gives options to send files/folders to media that is mounted.
Send to USB , HDD , CD/DVD ROM any media that is mounted !!
I was hungry for something new and tried this , send to usd or any media that is mounted on the machine , have a look at : sendtomeida
June 22, 2009
Right click send-to-media or usb
Posted by hemanthhm under Fun with shell, install appsLeave a Comment
Have you ever wished you had a right click send-to-media.
This scripts gives options to send files/folders to media that is mounted.
Send to USB , HDD , CD/DVD ROM any media that is mounted !!
I was hungry for something new and tried this , send to usd or any media that is mounted on the machine , have a look at : sendtomeida
June 10, 2009
for i in *.jpg; do j=`echo $i | cut -d . -f 1`; j=$j".avi"; mv $i $j; done
#!/bin/bash
old=$(zenity --entry --text="Current extension" --title="Rename")
new=$(zenity --entry --text="New extension or name" --title="Rename")
for i in *.$old; do j=`echo $i | cut -d . -f 1`; j=$j".$new"; mv $i $j; done
zenity --info --text="Done"
Steps in images :
June 4, 2009
FAST a command line database in Bash
Posted by hemanthhm under Fun with shell, Shell scriptingLeave a Comment
fad()
{
echo “$1″ >> ~/.db
echo “Updated at $@”
}
f()
{
grep “$1″ ~/.db
}
fuse()
{
echo “f keyword to search”
echo “f -add or f -a to add “
}
case “$1″ in
-a |-add |–add) fad “$2″
;;
“”) f “$*”
;;
*) fuse
;;
esac
For the input either use bash’s tab completion, which will automatically put in backslashes as appropriate, or the user should quote it.
Sample :
To add
$ f -a “hemanth.hm nerd +919449167054″
$
To search
$ f “nerd”
$ hemanth.hm nerd +919449167054
My sensiour thanks to \amethyst and greycat , for teaching me best partices
To run the script as a command , place the script in /bin.
More graphical approach
June 2, 2009
Twiiter for terminal
Posted by hemanthhm under Fun with shell, Shell scripting, install apps[3] Comments
__________________________________________________________________________________
tweet()
{
usr=$(zenity –entry –text=”Username” –title=”Twitt”)
pwd=$(zenity –entry –text=”Password” –title=”Twitt” –hide-text)
msg=$(zenity –entry –text=”Tweet” –title=”Twitt”)
if [ "$usr" = "" ]; then
zenity –info –text=”UserName invalid”
tweet
elif [ "$pwd" = "" ]; then
zenity –info –text=”Invalid Password”
tweet
elif [ "$msg" = "" ]; then
msg=”www.h3manth.com”
fi
}
tweet
URL=”https://twitter.com/statuses/update.xml”
curl -u ${usr}:${pwd} -d status=”${msg}” ${URL} -k -s > /dev/null
if [[ $? = 0 ]];
then
zenity –error –text=”You couldn’t twitt , check if everything is fine ” –title=”Twitt”
exit 0
else
zenity –info –text=”$msg is twitted” –title=”Twitt”
exit 1
fi
__________________________________________________________________________________
Join hands : twitty
May 23, 2009
===================================================








