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
Fix Magento 2 issue “Area code not set”
"Area code not set" is a very common issue in Magento 2, especially, during a cron task or executing a console command. I will...
Disable Two-Factor Authentication in Magento 2.4+ (2FA)
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
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
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...
Coding Tips
Fix Magento 2 issue “Area code not set”
"Area code not set" is a very common issue in Magento 2, especially, during a cron task or executing a console command. I will...
Get vocabulary by name in Drupal 8+
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
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
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...