
Kubernetes on Hetzner with ingress and certificate
This guide shows how I set up a Kubernetes cluster on Hetzner Cloud using kops, configured NGINX ingress with Hetzner Load Balancer, and enabled TLS certificates via cert-manager.
This guide shows how I set up a Kubernetes cluster on Hetzner Cloud using kops, configured NGINX ingress with Hetzner Load Balancer, and enabled TLS certificates via cert-manager.
I often find the need to set values in ViewData when calling partials that are reused across the website. It might not make sense always to make that value part of the Model. You can do so currently by doing… <partial name="_ProfileImage" model="image"
I’ve been writing some chef cookbooks recently. And you often see tests in chef that looks something like expect(chef_run).to(create_template('/opt/xyz.yml') .with_cookbook('other_cookbook')) And, when I came back to writing C# again, a Fluent Assertions statement seemed
Kamal previously known as MRSK, is a deployment tool that makes it easy to build your website as docker image and deploy them on to a bare metal or a virtual machine. It takes care of making sure there are no down time while a new release is created. Follow
Stimulus JS is a JavaScript front end framework library thats popular in th Rails community. Whats different about Stimulus compared to other libraries such as React and Vue JS is its simplicity in the features it comes with. If all you require is sprinkle of javascript interactivity on your website,
Most people seems to have a fear of long lived branches and recently this cost our team almost a week of release freeze as we had to roll back changes in production. In our current project, we follow GIT rebasing strategy. Our fear was that having a branch live long
Credit goes to Use Docker to Backup and Restore PostgreSQL Databases blog post. However, some of the instructions on that post is either out of date or doesn’t work. Word of warning: These commands were tested only on windows terminal. These instructions, will require docker installed locally. If you
I am trying to avoid using any auto mocking library. And instead trying to rely on Fakes when writing unit tests. There is an alternative approach to writing unit test using mock available elsewhere. When it comes to creating a stripe webhook controller on asp.net MVC, we need to
This blog post is only applicable if you have Mac development machine and wants to develop against .NET framework. The solution involves spinning up a windows 11 virtual machine on virtual box. But will require minimal manual steps. Only revert to this approach after you’ve tried other approaches such
I’ve been a fan of testing library when I was working with react about 2 years ago. Since then, I’ve started working on a project that’s using Blazor Web Assembly for front end. However, haven’t come across a similar framework for testing Blazor component that’s
When it comes to developing an ASP.NET MVC application for .NET Framework on your non Windows dev machine, you can make use of Mono Framework. A word of caution that Mono is no longer developed since .NET 5 was released. However, if your application targets .NET Framework version 4.
Since almost everyone is working remotely nowadays, all our meetings are conducted virtually via Zoom, Google Meet, Slack etc. And I have developed a distaste for being in meetings. Perhaps we have more meetings now compared to what we used to have. This might be because we can’t physically
dotnet
Hopefully not a lot of people are facing the issue of having to work and maintain an application thats written in .NET Framework. If you are having to, hopefully you’ve got plans to get it migrated and running on one of the latest .NET versions. But, in the mean
dotnet
StructureMap allows you to replace an already registered type mapping by clearing all previous registrations for the type and adding new one. The example in the documentation clears all previous registration for the type within a registry. What if you want to replace the registration from the Container after mapping
About 3 years ago, I decided to make it a requirement to read books and also make it mandatory to finish reading those books. I got interested in books even before that. I remember thinking when traveling, it will be a good idea to try to read a book. However,
I’ve had this blog migrated so many times in the past. I had it running in Jekyll and GitHub pages when I first started blogging. Then I switched to self hosting with Ghost blog engine. I switched out of Ghost in favour of Gatsby while I was doing more
dotnet
MassTransit is an open source library that is an abstraction over some of the popular messaging/bus technologies. I have used it for interacting with RabbitMQ bus and have found the experience very pleasant. There is a pitfall that most developers fall into (myself including) when writing a test for
nhibernate
Primitive obsession is a code smell. The proposal is to replace strings, and other primitive data types with domain types. For example, user’s id in system can be represented by an integer or Guid (UUID), or string (username). However, there are benefits that come along with creating a type
dotnet
I first came across MiniProfiler when I started a new ruby on rails project. It came built in and I found it very useful to see the time requests spend and a breakdown of it. I think it was only visible on development environment. I found myself asking the question
software-engineering
I had a colleague recently asked me “how do I improve and work on my technical skills?”. I am in no disillusion that I was asked because of my incredible technical knowledge. I think they were told to ask others in the team and I was included as part. But,
testing
I am mainly a C# developer and have some experience with JavaScript. Recently, I’ve been playing around with Ruby on Rails. I was impressed by the way tests are set up for you automatically with a new project. From system, integration, to unit tests. It prompted me to think
rails
The goal is to start running tests that is part of my code base with each push to main and also any pull requests to main branch. This blog post will not cover any linting or deployment of the ruby on rails web application. The final yaml is tested with
kubernetes
This blog is running on the ghost blogging platform at the time of this writing. Its current running version 3.42.x and there was a new major version released recently and its currently on version 4.2.0. There are guides available on ghost documentation site to help make
testing
Many are now familiar with using typed configuration that’s available in .net core and .net 5 with the help from Options pattern. However, if you are working on a projects targeting .NET Framework, you will know ConfigurationSection from System.Configuration assembly. ConfigurationSection allows you to group related configurations together