# Monday, 27 February 2017

Years ago I started github.com/KvdM as a place to fiddle around with code and to try to make pull requests from. For reasons I got sidetracked by work a lot and I didn’t participate much in it. Lately I got more interest, and time, again but I found myself locked out of my github. I turned on 2FA (two factor authentication years ago and noted down the recovery codes. Due to a change a couple of years after that, simply signing in and changing my password, apparently also the backup codes were changed and I didn’t notice (or got notified).

Long story short, I wanted to connect with the app on my phone, didn’t work. Tried again, didn’t work. Contacted support, got the  advice to check the time and date on the phone and try again. Didn’t work. Tried one of the recovery codes, didn’t work (then I found out they were apparently outdated and I didn’t know). Contacting and trying with support didn’t work out as I couldn’t prove that it was me.

So, I ended up creating a new Github account under github.com/KrisvanderMast. Hope to see you there. Already got 2 pull requests of open source projects accepted but that’s worth  a future story.

Bottom line: when you want to make use of 2FA be sure to add your cell phone number, on a regular basis check if your recovery code are still ok (or backup them locally every now and then) or work with SSH keys.

Grz, Kris.

2FA | Github
Monday, 27 February 2017 19:48:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, 01 May 2015

It's great to see that one of your own workarounds is getting obsolete. This morning I checked social media and noticed that Github put a new extension on the market that integrates nicely with Visual Studio 2015.

Be sure to check it out at https://aka.ms/ghfvs. Also be sure to check out the following post GitHub Inside Your Visual Studio and video: video I recorded for Microsoft's Channel 9 site

Grz, Kris

Friday, 01 May 2015 06:34:25 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, 01 July 2014

At work I mostly make use of the combination of TFS and Visual Studio. I also fiddle around with Git from time to time. As with the latest Visual Studio there’ also Git integration.

What I did was fork zencoding on github.

When opening our project on Github we need the url to clone. You can find that in the right lower corner:


For me that’s https://github.com/KvdM/zencoding.git.

Ok, so now let’s open our IDE of choice: Visual Studio2013. Follow these steps:

  1. Click in the Team Explorer pane on the button Connect to Team Projects.
  2. In the Local Git Repositories part click on the Clone link.
  3. Remember that url we just copied? Well in the textbox that just appeared we paste it.
  4. Click on the Clone button


And then we get, after a quick download of the good stuff, the following to see:


Double click on the zencoding name and then the following appears:


It felt a bit weird to see two .sln files but it turned out to be I had to double click the second one to get the code.

Code! Finally code! Ok let’s try to make a new test method. I put one in the Lorem.cs file:


Now open up the Team Explorer pane again and click on Changes:


Fill in some comment and click the Commit button:


That’s the good message we see now:


Either we sync from here but it’s more general to go to Team Explorer again and click on the Unsynced commits:


Press the Sync button:


Fill in the credentials:


And… I have to fill it in again?? Doing that results in the following:


An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error).
Response status code does not indicate success: 401 (Authorization Required).

What? Checking credentials again, typo perhaps, …?

Well it turned out to be that I had two factor authentication turned on. A good thing. However I didn’t see an input field where I could enter the numbers for that extra authentication step (which improves security so be sure to turn it on if you haven’t already).

I asked around and got a good tip from Phil Haack. When you have two factor authentication on you should be able to login via an authentication token. You can generate this on the site of Github. Open Settings > Applications (https://github.com/settings/applications) and generate a token.

Copy paste that particular token in a safe place as you’re going to be needing it soon.

Going back to Team Explorer in Visual Studio we click the Sync button again. The credentials screen shows again and instead of filling in a username we paste in the token we just generated. Leave the password input field blank. Click the OK button and yes, finally we succeeded in synching to Github:


And in Github we can see the changes that came through:



Another tip I got was that you might also need to fill in x-oauth-basic for the password part. Also read out some more documentation here: https://help.github.com/articles/git-automation-with-oauth-tokens.

Be sure to check out Git in Visual Studio. It’s awesome and I’m sure we’ll see more effort in better tooling in the future as well. Of course TFS will stay in there as well as it’s also a great system.

Grz, Kris.

Tuesday, 01 July 2014 23:57:29 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, 22 May 2012

Seems it paid off to let Phil Haack move to GitHub. I just noticed that there’s a version 1.0 for download of GitHub for Windows. I quickly installed it and opened up the ASP.NET web stack:



I like the way it looks, somewhat like Metro(twit).

Grz, Kris.

Tuesday, 22 May 2012 12:56:00 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |