Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
Twin Cities .NET User Group – HTTP Security Headers You Need To Have On Your Web Apps
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
IADNUG Workshop Deploying .NET 8 App to Azure with GitHub Actions and Bicep
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
JetBrains Rider Live Templates
Someone today during my talk on TDD for Blazor on a JetBrains Webinar asked me for what live templates I was using.
What are Live Templates?
Live templates are ways of quickly adding code. Usually you have 1-5 characters you type and then you hit “tab” and it will generate you lots more code. Sometimes these are called “snippets.”
If you want to see me using one from the webinar today check this out at around the 44:08 mark.
What Live Templates do I have?
I have four Live Templates related to testing:
xfwhich generates an xUnit Fact without asyncxfawhich generates an async xUnit Factxtwhich generates an xUnit Theory without asyncxtawhich generates async xUnit Theory
To add these to JetBrains Rider, you can open up your settings, go under Live Templates, then C#, and then you can add a new live template. Here are the settings.
xf for adding an xUnit Fact without async
Note: the words between $$ means your cursor will end up there and you can tab your way through those.

xfa for adding an async xUnit Fact

xt for adding an xUnit Theory without async

xta for adding an async xUnit Theory

JetBrains Webinar – TDD with Blazor
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
NDC Porto 2023 – TDD with C# from Padawan to Jedi
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
Renaming Git Default Branch to Main Fails
I recently created a new project and noticed that my git init created the default branch as master. I wanted to rename this to main.
So I typed the simple git branch -m master main but then I got this error:
error: refname refs/heads/master not found
fatal: Branch rename failed
I was confused, but then it hit me… I hadn’t actually committed anything yet so my branch didn’t actually exist! As soon as I committed something, my branch rename worked fine.
Hope this helps someone else.
MN Dev Conference – HTTP Security Headers You Need To Have On Your Web Apps
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
Agile+DevOps Days DSM 2023 – DevOps for Databases
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.
KCDC 2023 – TDD for Frontends
Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.