git branch -m old-branch-name new-branch-name

Easy way to rename branches, works with master branch.

Found this online today.

git submodule foreach ‘git fetch origin –tags; git checkout master; git pull’ && git pull && git submodule update –init –recursive

It makes working with submodules in git really easy and it works with submodules within submodules.


So recently while I have been commuting I have been thinking more about my road position and have came to the conclusion that riding down the left hand side of a lane is a really bad idea, to the extent that I am not actually sure that I think marked bike lanes on roads are a good idea either.

Two things happened recently to convince me of this,

  • Firstly a car driver opened a door into my path forcing me to swerve out to go around them even though I was riding on the line marking the outside of the cycle lane.
  • Secondly on my early morning commute (5:50am) a drive over shot a give way line once again forcing me to pull out suddenly.

Now in both of these incidents there was nothing behind me but it has struck me that if there had been then I would have been in real problems. So I am going to try and ride with such a road position that I should not need to make such avoiding manoeuvres in the future.

A quick way to remove pass-phrases from RSA keys.

openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new

The resultant file will contain the key minus the need for a passphrase.

This obviously reduces the level of security so you should be careful when using this feature.

So as part of my move to Manchester I now ride a bike most days either as part of my commute or just to get into town.

This new section on my blog will record my thoughts regarding my cycling adventures.

As recommended by Julio d’Escrivan I have been using Strava to track my rides and while Strava is designed for athletes I have found it very useful.

While I have found it interesting to see how much distance I am covering I have found that the ‘gamification’ of my journeys has added a very enjoyable aspect to them and driven to ride faster and get fitter. I am however very conscious of the fact that this gamification could prompt me to take risks while cycling so I am very careful to avoid that.