Shing Lyu

Disclaimer: This content reflects my personal opinions, not those of any organizations I am or have been affiliated with. Code samples are provided for illustration purposes only, use with caution and test thoroughly before deployment.

How to import serde's custom derive macors properly?

TL;DR Follow the official documentation

(continue reading...)


Caveats in Terraforming WAF V2 for CloudFront

If you want to add a WAF V2 (aws_wafv2_web_acl) to a CloudFront distribution (aws_cloudfront_distribution) using Terraform, there are a few caveats:

(continue reading...)


Check MongoDB index usage statistics

Run this command to get the usage of each index:

(continue reading...)


RFC2616 is dead, read RFC723X

While looking for the definition of HTTP Status Codes, I realize that RFC2616 is deprecated. You should look for RFC7231 instead.

(continue reading...)


Lessons learned in writing my first book

book cover

You might have noticed that I didn’t update this blog frequently in the past year. It’s not because I’m lazy, but I focused all my creative energy on writing this book: Practical Rust Projects. The book is now available on Apress, Amazon and O’Reilly. In this post, I’ll share some of the lessons I learned in writing this book.

(continue reading...)