# Used Code

Print week number with date

Posted in oneliner, shell by gregory_vincic on April 23, 2010
date +V -d YYYY-MM-DD

Clone hard-drive with ddrescue

Posted in oneliner, shell by gregory_vincic on April 7, 2010
  1. Insert hard-drive as slave
  2. Boot with sysresccd
  3. Create partition table on new disc with gparted
  4. ddrescue -d /dev/sda /dev/sdb /tmp/ddrescue.log
  5. Shutdown
  6. Make new disc primary, with  jumpers or cables
  7. Remove CD
  8. Reboot

Revert multiple changes in working directory

Posted in oneliner, Software Development, svn by gregory_vincic on April 5, 2010
svn status | grep -v "?" | awk '{ print $2 }' | xargs svn revert $1
Follow

Get every new post delivered to your Inbox.