Of Code and Me

Somewhere to write down all the stuff I'm going to forget and then need

Garmin Edge, Routes (gpx files) vs Courses (tcx files) December 31, 2010

Filed under: Garmin Edge — Rupert Bates @ 10:49 am

TCX files are courses and go in the Garmin\courses folder on the device. You access them from Menu -> Training -> Courses

GPX files are ‘Saved Rides’ or Routes and are stored in the Garmin\GPX folder. You access them from Menu -> Where To? -> Saved Rides

Advertisements
 

Avoid checking in connection strings and other sensitive config information to Github December 21, 2010

Filed under: Git — Rupert Bates @ 12:25 pm

In order to avoid checking in connection strings and other sensitive configuration information to Github I use the following approach:

Check your config file in with blank or dummy values then run:

git update-index --assume-unchanged [fileName]

Git will then stop monitoring changes to that file allowing you to put the real config info into it without fear of checking it in.

If you later make changes that you DO want to check in you can run:

git update-index --no-assume-unchanged [fileName]

But obviously make sure you blank out the sensitive information before checking in, and re run the assume-unchanged command afterwards.