Dinner time…I suggested to have “Yong Tau Foo” in Taman Kinrara but I forgot what is the restaurant name. Eloise (my wife) decided to ask her 4th sis whether the restaurant open in the evening. We got a green light from her 4th sis. Without any delay, we went there…

Eloise grabbed a name card…

Finally, the “Yong Tau Foo” and the curry “Chee Cheong Fun” arrived, 😀

We finished our food…awesome dinner, 😀

I decided to celebrate Father’s Day with my family members (me, my wife, dad, mum, brother and his girlfriend) at Sakae Sushi Subang Parade, 😀

While waiting for my dad, mum, brother and his girlfriend, I started taking pictures outside the restaurant using my Nokia E61i, 😛

Dad and mum started looking at the menu and ordering their dishes…awesome, 😀

One thing I missed…forgot to take pictures on our dishes, sad thing, :(

While reading on some blogger’s blog, found this cool tips and tricks, it is pretty interesting. Thumbs up to geek00L :)

It is very useful for copying a large file. This command below will show you the copy progress and it will not see it with a cp command.

rsync --progress -v SRC DST

Below is a first example: –

[root@localhost root]# rsync --progress -v someimage.img.gz /tmp
someimage.img.gz
63780138 100% 53.23MB/s 0:00:01
wrote 63788015 bytes read 36 bytes 42525367.33 bytes/sec
total size is 63780138 speedup is 1.00

If you would like more stats, below is a second example: –

[root@localhost root]# rsync --progress --stats -v someimage.img.gz /tmp
someimage.img.gz
63780138 100% 77.74MB/s 0:00:00
rsync[1579] (server receiver) heap statistics:
arena: 135168 (bytes from sbrk)
ordblks: 1 (chunks not in use)
smblks: 0
hblks: 0 (chunks from mmap)
hblkhd: 0 (bytes from mmap)
usmblks: 0
fsmblks: 0
uordblks: 41624 (bytes used)
fordblks: 93544 (bytes free)
keepcost: 93544 (bytes in releasable chunk)
rsync[1577] (sender) heap statistics:
arena: 135168 (bytes from sbrk)
ordblks: 2 (chunks not in use)
smblks: 2
hblks: 0 (chunks from mmap)
hblkhd: 0 (bytes from mmap)
usmblks: 0
fsmblks: 80
uordblks: 37520 (bytes used)
fordblks: 97648 (bytes free)
keepcost: 93552 (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 63780138 bytes
Total transferred file size: 63780138 bytes
Literal data: 63780138 bytes
Matched data: 0 bytes
File list size: 41
Total bytes written: 63788015
Total bytes read: 36

wrote 63788015 bytes read 36 bytes 42525367.33 bytes/sec
total size is 63780138 speedup is 1.00

Yesterday, I learned this tips and tricks from my colleague Danesh (or Danny). Thank you. His blog The Danesh Project

You can duplicate a current SSH session without login again…this is awesome and fast, :)

You need to add the following 2 lines below into your /etc/ssh/ssh_config file: –

ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p

You need to login into a remote SSH server for the first time, the SSH session will create a socket file at ~/.ssh folder indicating a login name, host and port.

ssh root@remotehost

Below is the SSH session socket file created: –

socket-root@remotehost:22

After that, you can duplicate the SSH session by just executing a same SSH command you did for the first login and this time there is no password prompt. You will login into the remote host directly.

This tips and tricks only works on OpenSSH 4.0 above. I had tried it on RHEL 3 (not working), RHEL 4 (not working) and CentOS 5 (working).