TypeScript type definition in summary

Summarize common type definition patterns in TypeScript as a quick reference.

Mongodb aggregate pipeline templates

Mongodb aggregate is a powerful operation in data query for analysis purpose and so on but I find I always need to refer to the official documentation or AI tools like ChatGPT or Perplexity for even very simple syntax when trying to compose aggregate operations, so I summarize some commonly used patterns as templates for quick reference at work.

Nodejs performance tips

Nodejs performance tips.

React fundamentals and pitfalls

React fundamentals and pitfalls. Mostly from the official doc.

How to enable audio and CJK in wsl

For newly installed ubuntu 22.04 on top of wsl2 under Windows 11, there are some issues such as no sound is output if opening a web page that plays audio, as well as that the CJK characters can not be displayed properly if the page has CJK characters, and here are some quick solutions.

Difference between service worker and web worker

Web workers and service workers are both types of JavaScript workers that run in the background, separate from the main browser thread. However, they serve different purposes and have distinct characteristics.

Terraform quick reference

Quick reference for commonly used terraform commands and how-tos.

async parallel behavior with callback

The async library has a convenient method called parallel, which takes a collection of async functions to run and an optional callback to run once all the functions have completed successfully.

How to remove dual-boot ghost entry from UEFI

After trying dual-boot of Windows 11 and Ubuntu, I decided to remove Ubuntu due to unknown but likely hardware driver issue causing my laptop's fan to be constantly running noisily regardless of nearly zero CPU or low Memory usage. Following the steps from guides available all over the internet, I deleted the Ubuntu partition and extended the Windows partition back to original volume from Disk management tool. However, there is a leftover issue that is the UEFI (BIOS) now has a ghost boot entry for Ubuntu which does not seem to have a straightforward way to be deleted. After searching on the internet for awhile and finally I found below proved to be working reliably.

Minimal unified shortcuts across editors and platforms for programming

Minimal unified shortcuts across editors and platforms for programming.