Archive for January, 2008

Unix shell scripts

Lately I’ve been using my macbook and imac side by side with one shared keyboard and mouse using Synergy. It works an absolute treat. However, I am bored of typing in commands in Terminal to get Synergy going so I’ve made my first shell scripts to allow my usual double clicking behaviour.

I’ve used Textmate to make two files, synergys.sh and synergyc.sh.

To start the server on the imac:
#!/bin/bash

echo "Starting synergy server"
/Applications/synergy-1.3.1/synergys -f --config /Applications/synergy-1.3.1/synergy.conf

To start the client on the macbook:
#!/bin/bash

echo "Starting synergy client"
/Applications/synergy-1.3.1/synergyc -f computername

and don’t forget to make it executable:
chmod +x filename.sh

and/or if you want it to be double clickable just rename the script to filename.command

Thanks d3vo for the pointers!

Monster Bullet

Monster BulletDamn, that’s a sexy scooter. Good thing my girlfriend is away this week because I have reunited with an old long time love from university: Scooting. Back then I used to ride from Karori down to town and back.

This new so called Monster Bullet from Micro is so much fun to ride- very different from ordinary scooters with this cool new “carving” mechanism. It corners like a snowboard; you can push it around and fish tail it with your hind leg.

So d3vo and I just spent the evening looking into hotting up his scooter. He has quite different preferences to me. In general I like my scooter to be as small as possible, as light as possible, with very stable smooth wheels that have great stamina, no movement in any other part except brakes and steering, silent braking. d3vo likes a long, wide deck and the biggest (we presume fastest) wheels he can fit on it.

BTW if you’re coming to Wellington from London and would like to bring my A-bike over with you in exchange for a beer and/or a hug, you’re on.