You are here

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.

Installing Syncthing on Windows XP

More detailed instructions found at: docs.syncthing.net/…start.html

Topic: 

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:

Topic: 

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
Topic: 

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
Topic: 

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_0.1.4-1_i386.deb
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>

Topic: 

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 }'

Topic: 

Pages

Subscribe to RSS - misc