misc

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

dd-wrt on Linksys 54G / 54GS

Choose a build

The big question is how to choose the right build. This site has a great introduction and says:

The best advice I can give you when choosing the right build for you is the start with the DD-WRT wiki entry for your specific router model.

Phoronix Test Suite

Quick script for downloading and running Phoronix Test Suite

VER=3.8.0
PTS=phoronix-test-suite
wget http://www.phoronix-test-suite.com/download.php?file=$PTS-$VER -O $PTS-$VER.tar.gz
tar -xf $PTS-$VER.tar.gz
rm -f $PTS-$VER.tar.gz
cd $PTS
./install-sh
#yum install php-cli php-dom
#apt-get install php5-cli
$PTS batch-setup #y n n n n y y
$PTS list-tests

$PTS batch-install stream
$PTS batch-install ramspeed
$PTS batch-run stream
$PTS batch-run ramspeed

ls -al .$PTS/test-results

finding out if your smtp email server is blacklisted

20 basecamp alternatives for Project Management

  • Note that it is essential to see all the tasks to be done to complete a milestone. Some products, including basecamp, will not allow this but hide the tasks within lists

Drupal bookmarks

Bookmarks

Office 2007 import/export in OpenOffice.org

The following worked for me:
apt-get install libgif4
wget http://katana.oooninja.com/f/software/odf-converter-integrator-chocolate...
dpkg -i odf-conv*.deb
vi /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu # and modify this line:
<prop oor:name="URLPattern"><value>*.docx *.DOCX *.docm *.DOCM</value></prop>

(taken from http://katana.oooninja.com/w/odf-converter-integrator )

awk

stat -c %y vs.exe | awk '{printf $1 "\n"}'

I found awk one of the most useful tools (almost like grep or sed).
awk treats the input line as a (database) record containing fields, using (by default) the space character as the field separator (but a different field separator can be specified in the command).
Then you can refer to any field of the line using its index ($1, $2, $3, etc.)
Examples:
stat -c %y vs.exe | awk '{printf $1 ":" $3 "\n"}'
will print the first and the third fields on each line, putting ":" between the fields.
stat -c %y vs.exe | awk '{printf $1 ":" $3 }'

Extract NT Backup Files in Linux Using mtftar

If you would like to extract the contents of an NT backup (.bkf) file in Linux, mtftar is a utility that translates a Microsoft Tape Format (MTF) stream into the tar format. You can pick up mtftar from the authors site at http://gpl.internetconnection.net.

To get started, download the source code and compile.

$ wget http://gpl.internetconnection.net/files/mtftar.tar.gz
$ tar zxfv mtftar.tar.gz
$ cd mtftar
$ make
$ sudo cp mtftar /usr/bin/
- or -
$ su -c "cp mtftar /usr/bin/"

Using this utility is straight forward, as shown in the following example.

Syndicate content