Sunday, May 31, 2009

Resume scp after a stalled network connection

yeah! it was a pain.. but no more for me. try rsync on failed scped files


rsync --partial --progress --rsh=ssh user@scpenabledhost:/home/path/file .


if it's too long, add an alias in your .bashrc.


alias scpresume="rsync --partial --progress --rsh=ssh"


now you can comfortably hit up key once and replace "ssh" in previous command with our new alias "scpresume"


scpresume user@scpenabledhost:/home/path/file .


happy rsyncing!! :D

Tuesday, September 2, 2008

bubble wrap

(08:12:30 AM) b: you are different
(08:12:48 AM) g: okay
(08:12:55 AM) b: a very rare creation..
(08:13:03 AM) b: something very hard to build..
(08:13:12 AM) b: so, i see you as a creation of god..
(08:13:16 AM) b: for the right guy..
(08:13:32 AM) b: so i see you as a gift for the right guy.. from god..
(08:13:40 AM) b: as he is the right guy
(08:14:04 AM) b: god send many things to people..
(08:14:11 AM) b: but some are broken on the way..
(08:14:31 AM) b: because god forgot to wrap them in bubble wraps..
(08:14:41 AM) b: or went for the wrong parcel service..
(08:14:55 AM) b: they have not handled it with care
(08:15:06 AM) b: but.. you were in a bubble wrap
(08:15:21 AM) b: and god choose the right bubble wrap to wrap you in..
(08:15:29 AM) g: my parents?
(08:15:36 AM) b: yeah, you got what i said!

Monday, September 1, 2008

howto do a recurive touch!


find . -print0 | xargs -r0 touch