Sunday, October 3, 2010

Ubuntu 10.10 Fun with Terminal

I stumbled upon this site HERE that had some cool but useless scripts, anyway I thought I would just share with you my favorite two.

Just throw the following into a Terminal window and press Enter.

c=12322123;x=20;y=20;while read -sn1 p;do k=${c:(p-1)*2:2};let x+=$((k/10-2));let y+=$((k%10-2));echo -en \\033[$y\;"$x"HX;done
 
                    1= Left        2=Right        3=Up        4=Down.

while read -sn1 p;do s="";for((i=0;i<$p;i++));do s=x$s;done; yes $s > /dev/audio&sleep 0.1;kill %%;done

           numbers 1 - 9 Plays a different note for each key pressed.