Tech Blog

Hi, I'm a .NET developper fond of Microsoft technologies, welcome to my blog !

Clean up your local git branches.

Playing with Nushell to create a useful git alias to delete unused local git branches.

When working on a git repository, I often have to manually delete old local branches that I don't use anymore. That's not really a huge waste of time but still that something I have to do quite often so I decided to automate that.

Handle token retrieval while querying an API

Using a DelegatingHandler

In our daily job, we often have to query secure REST APIs that require our HTTP requests to have a valid access token in their Authorization header. Of course, many API come with a SDK that makes the job easier for us as it directly takes care of retrieving a token and sending the authenticated HTTP requests. However it is not always the case and knowing how to implement that using HttpClient, IMemoryCache and DelegatingHandler can become pretty useful.

Coming across Gitpod

An IDE in the browser

The other day when I was looking for a way to automate my development environment setup, I came across Gitpod. Not really what I was looking for but I discovered an awesome tool for working on open source projects.