Home
Rick Neeft
Cancel

Codeberg

Introduction Since 2017 I have stored all my code in Git repositories on GitHub. However, due to the current political climate and a growing preference for European services, I started looking for...

Benchmark regex

Regular expressions (regex) are patterns used to match character combinations in strings. In .NET, there are several ways to use regex for matching. The simplest form is: System.Text.RegularExpres...

View all certificates in User store

This short post shows how to list certificates from the Current User (Personal) certificate store using C#. The code below prints a table with certificate thumbprints and the certificate common nam...

How to generate prompts for Copilot by Copilot

When I’m coding and Copilot is trying to help me, creating a good prompt can sometimes be very challenging. But did you know you can let Copilot create a prompt for you? Context I’m replacing all ...

How to Show the GRUB Menu and Boot Information on Startup in Ubuntu

When I boot up my computer, I like to see what’s actually happening. So instead of the splash screen I like to see the boot information. I also prefer to have the GRUB menu appear briefly, in case ...

Add Required column to existing SQL Database Table

When working with SQL databases, there might be times when you need to add a new column to an existing table. If this column is meant to be mandatory (i.e., it cannot be NULL), you need to ensure t...

Using Moq's Callback for Better Test Verification

In unit testing, it’s common to verify that certain methods are called with specific parameters. Moq provides a convenient way to do this with the Verify method. However, relying solely on Verify c...

Site starter snippets

Sometimes, I just want to start quickly with an empty HTML file. Here are some starting snippets for HTML. Bootstrap Quick and easy starter setup for bootstrap index.html <!doctype html> ...

Decorators DotNet Dependency Injector

What is the decorator pattern Using decorator is a great way to add responsibilities to a set of classes or specific classes without needing to modify the class itself. The decorator implements th...

Special DateTime value retriever

I use Specflow a lot. It is a simple way to describe specifications for a software system. Working with days, however, never look nice in Gherkin style. Consider the following given: Given a user...