Note to self. Tired of asking for a KVM every time you need to reboot your server to unlock your LUKS2 encryption? Install prerequisites Is it really there? It’d be wise to request a KVM before you actually give it a try. Just in case. Learn from my mistakes.
Install RSAT via Powershell
Note to self. I needed to install RSAT on a build agent, so using the “optional features” GUI was not possible. Get a list of RSAT components: Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State Install what you need, e.g.: Add-WindowsCapability -Name “Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0” -Online
Azure DevOps – build pipeline billing extravaganza
Azure DevOps has a nice little feature called Azure Pipelines. It’s a great CI/CD tool, especially if you’re already using Azure DevOps for your source control and work item tracking. However, it’s pricing is a little confusing, and it’s easy to end up paying more than you need to. Azure…
Quickstart – Azure AD B2C authentication in ASP.NET Core MVC
There’s a lot of identity providers for ASP.NET. One of the easiest (and cheapest, if you’re under 50k MAU) option is to use Azure AD B2C. Here’s the quickest was to get up and running with an ASP.NET Core MVC app and Azure AD B2C identity. Create a B2C directory…
Global and persistent query filters for Entity Framework Core
Occasionally, you may want to apply a filter to all queries for an entity type. For example, you may want to ensure that some records are not returned in any query, such as when an entity is soft-deleted. Now I probably should have been familiar with this, but it can…
Let’s Encrypt Certbot manual mode with Azure Key Vault
Yes, yes, I know, certbot should be automated. Most of the time, I use Certbot to generate and renew my Let’s Encrypt certificates in an automatic way, i.e. through Github Actions or something. However, every now and then I need to generate a certificate manually, usually for ephemeral purposes. To do that…
Persist a list of integers with Entity Framework Core
I had to persist a list (or array) of integers in a database table using Entity Framework Core. I was surprised to find that EF Core does not support this out of the box. I found a few solutions online, but they all seemed to be overly complicated, here’s a…