ShuoAdd Symbolic links in GitI used symbolic links to avoid repetitive and tedious configuration files setup for various environments. If you’re not familiar with…Mar 24, 2023Mar 24, 2023
ShuoRunning Locust in virtual environmentMy local machine is running macOS Monterey version 12.6.3. I have Homebrew installed and a default version of Python 3.11.2. But when I…Mar 21, 2023Mar 21, 2023
ShuoSetup go module tracking in GolangWhen I start a new `golang` project I follow these simple steps to claim vendor dependencies and vendor version tracking.Feb 9, 2023Feb 9, 2023
ShuoMocking AWS S3 in Jest Unit TestIt’s tricky sometimes to properly mock AWS S3 API in unit tests. Here is an example. In the source code, I call S3 API “upload” for…Dec 7, 2022Dec 7, 2022
ShuoReset Git repo and its submodules to the original stateIf your Github repo uses submodules, and you made some unwanted modification, you can reset your submodules to its original state byAug 22, 2022Aug 22, 2022
ShuoFix Dependabot vulnerabilities in npm packagesOnce you setup a Dependabot scan in your Github repository, you’ll be alerted once it identify a code secuirty vulnerability. But sometimes…Aug 16, 2022Aug 16, 2022
ShuoCreating a Terraform File by Importing an Existing AWS ResourceI worked on a prototype to integrate AWS Cognito with API Gateway. To create the Cognito user pool related resources using Terraform is…Aug 11, 2022Aug 11, 2022