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

  1. Download the basic package (32 or 64 bit) from here: syncthing.net
  2. Unzip into C:/syncthing
  3. create the batch file sync.bat (using windows because of line endings)
start "Syncthing" syncthing.exe -no-console -no-browser
start "Syncthing" /low syncthing.exe -no-console -no-browser
  1. Create a shortcut and copy-paste it into the startup folder

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

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
#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


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 )


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

Syndicate content