Programming
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
Delete node revision in Drupal 8+ programmatically
If you cannot find a way to delete node revision in Drupal 8+ programmatically, take a look at this post, I will show you...
Integration API not working after upgrading to Magento 2.4.4+
There is an update that make integration API not working after upgrading to Magento 2.4.4+. I will give you some notes to fix the...
How to check if node is published in Drupal 8+
This is a quick tip to check if node is published in Drupal 8+.
Since Drupal 8+, entity or node is published when its status...
How to Get Last Content Moderation State in Drupal 8+
If you're using Drupal 8 or above for your website's content moderation, you may need to retrieve the last moderation state of a piece...
Coding Tips
Delete node revision in Drupal 8+ programmatically
If you cannot find a way to delete node revision in Drupal 8+ programmatically, take a look at this post, I will show you...
Integration API not working after upgrading to Magento 2.4.4+
There is an update that make integration API not working after upgrading to Magento 2.4.4+. I will give you some notes to fix the...
How to check if node is published in Drupal 8+
This is a quick tip to check if node is published in Drupal 8+.
Since Drupal 8+, entity or node is published when its status...
How to Get Last Content Moderation State in Drupal 8+
If you're using Drupal 8 or above for your website's content moderation, you may need to retrieve the last moderation state of a piece...