In this guide i will a demonstrate a way to connect your android phone to the internet using just the usb cable. This will only work on rooted phones with a terminal emulator installed.
Check if your router is ipv6 ready
An easy and fast way to check if your router supports the ipv6 protocol is to ping6 the “all routers link-local address” (RFC 4291).
$ ping6 -I eth0 ff02::2
You can replace eth0 with the name of the interface you are using.
Please use the door

Get wifi signal strenght in percentage.
Assuming our wifi interface is “wlan0″, run the following command to get wifi signal strength in percentage.
while [ 1 ];do clear;a=$(/sbin/iwconfig wlan0 | grep "Link Quality" | awk '{print $2}' | sed 's/.*\=//'); echo $(($((${a%/*} * 100)) / ${a#*/}))%;sleep 1;done
Join the dark side with Google!
Script to download latest phpMyAdmin
$ link=$(wget --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1)" -q -O- http://sourceforge.net/projects/phpmyadmin/ | grep http | grep "/files/" | sed -e 's/.*\<a\ href=\"//' -e 's/\".*//' -e 's/all-languages/english/') && link2=${link%/*} && filename=${link2##*/} && wget "$link" -O "$filename"
Just checking if im still online..
while [ 1 ];do ping -c1 google.com &> /dev/null && echo -e "\n--------->`date`<---------\n" && break;echo "Sleeping..." && sleep 10;done
Best Song
Εορτολόγιο shell script
Ένα απλό εορτολόγιο script που παίρνει το info από το eortologio.gr
$ eorti="";while [ -z "$eorti" ];do eorti=$(wget -O- http://www.eortologio.gr/mobile/giortes.shtm -q | iconv -f iso_8859-7 -t utf-8 | grep `date "+%d/%m/%Y"` | awk -F" : " '{print $2}' | awk -F"<\hr/>" '{print $1}' 2> /dev/null); done;echo Shmera eortazoun oi: $eorti
Happened to everybody
Getting the remaining battery life with terminal
To get the remaining battery life with terminal, run the following command:
$ echo "$(echo "scale=4; `cat /proc/acpi/battery/BAT*/state | grep remaining | awk '{print $3}'`/`cat /proc/acpi/battery/BAT*/info | grep "last full" | awk '{print $4}'`* 100" | bc | cut -c-5)%"
There is some truth in that
Speed Of Light
Print your X idle time
Xprintidle is a utility that queries the X server for the user’s idle time and prints it to stdout (in milliseconds). You could use it to check if anyone was sitting on your computer while you were away
or even write scripts to perfom simple tasks like limiting your total idle time or send mails and notices.
# apt-get install xprintidle
Example:
while [ 1 ];
do
if [ `xprintidle` -gt 120000 ];
then
notify-send "You have been idle for 2 mins"
break
fi
sleep 1
done
This script will send a notification when idle is more than 2mins and stop.
Be creative
Sending commands to Xchat from the command line
A nice way to send commands to xchat from the command line is by using D-Bus. D-Bus is a system for software applications to communicate with one another. A nice command tool for that job is dbus-send and comes with the “dbus” package in debian.
Sys info to image file – converter
First of all you need to install the following packages.
For debian/ubuntu users:
# aptitude install imagemagick html2ps lm-sensors
*lm-sensors needs to be configured before you can use it
Now download this script and execute it as normal user.
$ sh drawinfo.sh
A file called “Drawinfo.png” will be created and it looks something like that.

Perfection !
FFmpeg Cam/Audio recording (Pulseaudio)
Here is a fast and easy way to record your videos using pulseaudio.
ffmpeg -f alsa -i pulse -ac 2 -acodec pcm_s16le -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -threads 0 -vcodec libx264 -vpre lossless_ultrafast test.mkv
For this to work, you need to have your ffmpeg compiled with libx264 support. Debian users can either compile it or just use the multimedia repository.
Finding the installation date for a linux machine.
A good way to find the installation date of a linux machine is by using the passwd command with the -S option. This option displays account status information. The status information consists of 7 fields according to “man passwd”. The third field gives the date of the last password change. So, by finding the date of the users who never changed their password we can easily assume the installation date.
These users can be system users like, sys, bin, daemon etc.
example:
# passwd -S sys
sys L 11/11/2009 0 99999 7 -1
# passwd -S daemon
daemon L 11/11/2009 0 99999 7 -1
# passwd -S bin
bin L 11/11/2009 0 99999 7 -1
Enjoying good music :D
Scrot and Team Viewer
For those who dont know, scrot is a fast and easy command line screenshot tool. There are some cool stuff you can do with it, like combining it with team viewer. Team viewer is a non-free vpn-like solution to share your desktop with others and vice versa.
Stream any pulseaudio application
Steaming any application we like to a media server like icecast2 or shoutcast was made easy with pulseaudio. You wont need any special plugins for every application. Pulseaudio has all the needed tools to make it work
Xfce 4.8pre1 Released
The Xfce development team is proud to announce the first preview release for Xfce 4.8. Together with this preview release, the Xfce project announces the feature freeze for the final 4.8 release which is set to be pushed out to the world on January 16th, 2011.
Source: XFCE official site



