DevOps
Add basic authentication to Kubernetes Ingress nginx
Wonder how to add basic authentication to Ingress? I am going to show you how to add basic authentication to Kubernetes Ingress nginx in...
Use ternary condition in Helm
In this post, I will show you how to use ternary condition in Helm to render inline values into the templates.
Let say we have...
Update root password in MariaDB 10.4 on MacOS
There is some changes in authentication procedures in MariaDB 10.4, hence, you can not use previous techniques to change root password. I will show...
Execute Kubernetes Pod Shell Command as Root user
Usually for security reasons, you will run container image as a regular user, non-superuser. However, sometimes, you want to test or debug something on...
Web Development
Check if order was created by customer or admin in Magento 2
A little trick to check if order was created by customer or admin in Magento 2.
In Magento 2, by default, if order was created...
Make HTTP Post request in Deno
In this post, I will show you how to make HTTP Post request in Deno.
Similar to Javascript, Deno uses fetch() function to make HTTP...
Add custom Prometheus counter metric into Gin Gonic application
As counter is one of the most basic metric in monitoring, we can add custom Prometheus counter metric into Gin Gonic application.
Let's start with...
Monitor Gin Gonic application with Prometheus metrics
In this article, I will show you how to integrate and monitor Gin Gonic application with Prometheus metrics.
First, let's start by creating a new...
Coding Tips
Check if order was created by customer or admin in Magento 2
A little trick to check if order was created by customer or admin in Magento 2.
In Magento 2, by default, if order was created...
Check if key exists in a map in Go
In this post, I will show you a tip to check if key exists in a map in Go (golang).
When we access the value...
URL Encode Query String Parameters in Go
In this post, I will show you how to perform URL encode query string parameters in Go (golang).
To URL encode query string parameters in...
Make HTTP Post request in Deno
In this post, I will show you how to make HTTP Post request in Deno.
Similar to Javascript, Deno uses fetch() function to make HTTP...