Handle Json Key Case

When working with JSON data from different sources, you might see inconsistent key names, like: { "tTien": 1000, "ttien": 1000, "tthue": 100, "tThue": 100, "TThue": 100 } Different places use different names, which is annoying. Using try/except, if/else, or match/case makes the code messy and error-prone. Simple solution: Before processing, convert all keys to lowercase. It’s fast and easy to maintain: data = {k.lower(): v for k, v in original_data.items()} Now you can just use data['ttien'], data['tthue'] without writing long code. ...

03/07/25 · 1 min · 111 words · me

Special Characters

When writing a blog, you might need to use characters like >, <, <=, >=, &. To avoid display errors, change them like this: > → > < → < <= → <= >= → >= & → & For example, the code displays correctly: if (a <= b && b >= c) { return true; }

02/07/25 · 1 min · 57 words · me

Best Chrome Extension

Extension to manager all (other) extensions is https://chromewebstore.google.com/detail/extensity/jjmflmamggggndanpgfnpelongoepncg

02/07/25 · 1 min · 8 words · me

Tip Move Repo Gitlab Github

How to move a repo from GitLab to GitHub (or vice versa) and keep all history, branches, and tags with just a few bash commands.

01/07/25 · 1 min · 70 words · me

Tip Check Docker Volume Size

How to quickly check Docker volume size using the CLI.

01/07/25 · 1 min · 21 words · me

Deploy Ghost With Docker

Ghost is one of the best platforms for beginners who wanna start blogging fast. Below is a simple docker-compose.yml setup to get you going right away: services: ghost: image: ghost container_name: ghost ports: - "2368:2368" environment: - NODE_ENV=development - database__connection__filename=/var/lib/ghost/content/data/ghost.db - url=http://localhost:2368 volumes: - ./ghost-data:/var/lib/ghost/content

01/07/25 · 1 min · 45 words · me

Huy's Path to Becoming a Senior DevOps

Welcome to my blog! I’m Huy. I’m a developer, and I want to become a senior DevOps. This blog shares my experience on the journey to becoming a senior DevOps. Hope you enjoy your time here!

01/07/25 · 1 min · 36 words · me