Tuesday, July 26, 2022

Programming

DevOps

Add basic authentication to Kubernetes Ingress nginx

Add basic authentication to Kubernetes Ingress nginx

0
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

Use ternary condition in Helm

0
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

Update root password in MariaDB 10.4 on MacOS

0
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

Execute Kubernetes Pod Shell Command as Root user

0
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

Check if order was created by customer or admin in Magento 2

0
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

Make HTTP Post request in Deno

0
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

Add custom Prometheus counter metric into Gin Gonic application

0
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

Monitor Gin Gonic application with Prometheus metrics

0
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

Check if order was created by customer or admin in Magento 2

0
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

Check if key exists in a map in Go

0
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

URL Encode Query String Parameters in Go

0
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

Make HTTP Post request in Deno

0
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...

Miscellaneous