Having 403 Forbidden when creating use via the API with Keycloak? Here is the fix.
Slow WordPress site? Here is a possible fix!
So recently I need to set up a quick project to store the results of my crawler in a database. Previously, I would use JDBC for this job. However, with the recent knowledge of Hibernate, why don’t I give it a go? In this post, I’m going to show you how you can use Hibernate… Continue reading Using Hibernate In Standalone App (without Spring) using MariaDB
So I recently need to manage some internal projects and don’t want to use a subscription from sites like Jira. After considering some open source options, I chose OpenProject since it’s quite simple to use (unlike redmine). Setting up the site is quite simple, especially with docker. Let’s get started. Configure a domain for the… Continue reading Setup OpenProject With Docker & Nginx(with SSL)
When working with kubernetes (maybe in a CKA exam), you work with terminal most of the time. Configuring the environment properly is vital to save you time. Here are things I do first when entering a new environment (Kubernetes Playground | Katacoda, for example). Enable bash completion Honestly, I don’t use this much. However, occasionally,… Continue reading Basic setups for working with Kubernetes
Studying Affinity and AntiAffinity can be challenging due to the length of the official documentation. This post is not intended to replace the official docs but to provide a bird’s-eye view of the structure. Some takeaways: affinity is a sub section of pod’s spec The diagram as follow: The full diagram as follow: Please ignore… Continue reading Affinity and Antiaffinity in Kubernetes simplified
Quick commands to work with labels
Create ConfigMap from YAML file Create and use configmap from single values That would create a configmap with a key myval1 = 10000 Of course, you can use multiple –from-literal blocks in a single command. Use a single value from configmap in pod yaml Create and use multiple environment variables from file If you plan… Continue reading Create and use ConfigMap in Kubernetes With Diagram
Let’s look at the following diagram to create Kubernetes Replication Controller: What to remember when creating ReplicationController apiVersion: v1 You can define number of replicas, selector and template under spec spec->template has its own spec section along side metadata You specify containers’ related attributes under template‘s spec Create ReplicationController YAML file example
Recently I had to write a bash script to truncate all tables on a test database server. Using pgadmin is a real pain since I have at lot of tables and databases. In addition, I need to do this quite frequently. And I also didn’t want to install postgres on my machine. The requirement is… Continue reading Quering PostgreSQL with Docker