Friday, May 28, 2010

MAC OS X pgup, pgdn, home and end

In MBP keyboard there is no pgup, pgdn, home and end key.
but there is an alternative to do that.

pgdn in shell -> fn+shift+down arrow
pgup in shell -> fn+shift+up arrow
home in shell -> fn+shift+left arrow
end in shell -> fn+shift+right arrow

pgdn gui -> command+down arrow
pgup gui -> command+up arrow
home gui -> command+left arrow
home gui ->command+right arrow

Sunday, May 23, 2010

Man Made Life

I used to told my friends that "HUMAN IS GOD" and as usual they don't accept it because they cant, now its time to rethink ha ha ha :)

Craig Venter and his team have built the genome of a bacterium from scratch and incorporated it into a cell to make what they call the world's first synthetic life form.

find out more here.

Tuesday, May 18, 2010

how to uninstall Xcode

to uninstall xcode from mac run this command in terminal:

$sudo /Developer/Library/uninstall-devtools --mode=all

Thursday, May 13, 2010

mac 'ls' color output

ls command output is not colored in mac os x by default
to color it fellow this simple steps:

1. there is a file in home folder named .profile
2. open it using nano or pico
3. append this line : alias ls="ls -G"
4. restart terminal and its done :)

Friday, May 7, 2010

installing solaiman lipi in ubuntu

$gksu nautilus /usr/share/fonts/truetype
paste the downloaded font in that folder.
$sudo fc-cache -f -v
press enter.
done :)

Thursday, May 6, 2010

join splited *.001 ... file using 7zip

7zio cant iterate automatically through files
so use this simple bash script to get job done.

$for i in $(ls *.001); do (7z e $i) done;

this method can be used with rar,gz,tar.gz,tar.bz2 etc

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...