Opti Hosts: Beyond Cloudflare, Choosing IPs by Latency

Over the past few days I threw together a small and beautiful little tool to deal with some tricky CDN geo-DNS strategies. It basically calls Globalping's API to get the resolution results for a domain in other regions, then picks the IP with the lowest ICMP latency and writes it to the local hosts file.

Review of 2024

A lot happened in 2024, so I'll write a running diary of it this year too.

Monorepo Reflections

I used to organize my personal projects with a Monorepo all the time, but whenever I started coding, there always seemed to be a vague question nagging at me: is my Monorepo configured correctly?

Recently I was getting ready to start a new project, so I took the opportunity to search through a lot of material and look at how some open-source projects organize theirs, trying to figure out the so-called "correct" way to organize a Monorepo.

About My Server @ Home

Maybe it's the influence of feeds and recommendation algorithms, but seeing other people play with NAS and All-in-One really made me itch, so I also put together a low-cost Home Server o( ̄▽ ̄)d

An Idea for Stateless Email Verification Codes

Recently I've been trying to use Cloudflare Pages and its Functions to implement a simple unified authentication system similar to CAS. Because of the stateless limitations of Serverless itself, and because I don't want to bring in another Serverless Redis service (like Upstash), in the email verification code scenario, the traditional Redis / Session-based approach is unusable (;´д`)ゞ

Happy New Year 2024

This is a retrospective and photo gallery post.

It's already late February now, and whether you count from New Year's Day or Lunar New Year, this post is way too late, isn't it (゚Д゚*)ノ

Fortunately, the Lantern Festival is still around, so I can at least barely claim some connection (≧∇≦)ノ

January-August 2023

More than half of 2023 has passed, so let me sum up these past six-plus months. Even though it's all just a mundane diary, at least it helps me recall and sort out what I've done, and keeps me from feeling like I've wasted my time (a bit of psychological comfort, I guess (/▽\)

Cover: a cloud I cropped out

Using Fiddler to Add Expired QQ Stickers

Cute stickers often show up in group chats. When you tap in and get ready to add one, there’s a very good chance you’ll run into “sticker expired,” like the title image..