Saturday, January 28, 2023

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

Disable Two-Factor Authentication in Magento 2.4+ (2FA)

Disable Two-Factor Authentication in Magento 2.4+ (2FA)

0
When you upgrade or install Magento 2.4+, two-factor authentication mode is automatically enabled by default, which might cause trouble to you. In this post,...
Enable Full Page Cache in Magento 2

Enable Full Page Cache in Magento 2

0
By default, Full Page Cache (FPC) is disabled after installation, and there is no way to configure it via admin. In this post, I...
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...

Coding Tips

Get vocabulary by name in Drupal 8+

Get vocabulary by name in Drupal 8+

0
In this post, I will share with you a snippet to get vocabulary by name in Drupal 8+. function getVocabularyByName($vocabularyName) { $vocabularies...
Embed files in Go

Embed files in Go

0
In this post, I will show you a tip to embed files in Go (golang), which, in facts, reads file contents into a variable. Starting...
Clear a map in Go

Clear a map in Go

0
In this post, I will share with you a quick tip to clear a map in Go. There are two ways to clear a map...
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...

Miscellaneous