Linux

Backup partition table

This post describes how you can backup your partition table for future recovery. Backup This example describes how you can backup the disk partition table on /dev/sda dd if=/dev/sda of=sda.mbr bs=512 count=1 It’s also useful to keep a human readable copy of the disk layout for future reference sudo fdisk -l > partitions.lst Restore This […]

Read More
Linux

Change file date in linux using touch

To change the date on all files in a folder to 19th February 2009 at 18:00 using the linux command touch # touch * -t “200902191800” It’s a nice way to correct file dates. Replace * with the actual file name if you don’t want to correct all files in the current folder.

Read More
Scripting

Valid Flash

I’ve gotten tired of my Flashpresentation movies not being valid HTML. After some research and a tip from a friend of mine I found this solution to the problem. <object type=”application/x-shockwave-flash” data=”images/banner.swf” width=”288″ height=”128″> <param name=”movie” value=”images/banner.swf” /> <img src=”banner.gif” width=”288″ height=”128″ alt=”banner” /> </object> It works great and shows a image file if Flash […]

Read More