My Blog
September 23, 2026
Debugging WebSocket Connections from the Browser Console
Postman can't reproduce CORS or mixed-content errors, so it lies to you about WebSocket bugs. Here's a small console script that tests the connection in the one environment that matters: the browser.
September 23, 2026
Open a Folder in Zed From the Terminal (the `code .` Equivalent)
VS Code has code . to open a folder, but Zed's CLI isn't on your PATH out of the box. Here's a one-line fix using a symlink in ~/.local/bin, plus the commands that make it useful.
September 23, 2026
Simulating Packet Loss on Linux to Test Audio and Video
You can't wait around for real Wi-Fi to misbehave. Use tc and netem to drop incoming and outgoing packets on demand and see how your audio and video stack holds up.
May 1, 2026
Useful .bashrc Tweaks That Make Your Terminal Life Easier
A collection of practical .bashrc tweaks for navigation, safety, auto-correction, and shared terminal history that remove friction from daily terminal use.
April 30, 2026
Rescuing a 100% Full /var Partition on Linux
How to diagnose a full /var partition, clean up snap packages and apt caches, and use bind mounts to permanently move heavy directories to /home.
March 25, 2025
Syncing System Info from Electron in React with useSyncExternalStore
useSyncExternalStore is a not-so-popular React hook, but it's super useful for subscribing to an external source and storing its data—no useEffect or useState needed.
February 14, 2025
Cleaner JavaScript with Logical Assignment Operators (&&=, ||=, ??=)
A guide with examples on how logical assignment operators (&&=, ||=, ??=) in JavaScript simplify assignments.
January 30, 2025
How to disable internal microphone and camera on Linux
Disabling input devices can be required for privacy, security, or debugging. This guide provides the necessary commands to achieve it.
December 17, 2024
Reversing an integer mathematically in TypeScript
Reversing an integer is one of the most common problems for interviews. It can be easily done if we treat the number as a string, but there is a mathematical way of doing it...