Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
4 posts · #nodejs
Clear filters·6 min read

Removing a work folder in DailyBrief no longer triggers a full disk rescan
Saving the work-folder list used to rescan every root, even when I only removed one. The fix compares the effective root sets before and after and rescans only when a folder was gained.
In short
- Every save of the work-folder list cleared the cache and started a project discovery run plus a monitor run, including saves that only removed or switched off a folder.
- The handler now builds the effective root set before and after the save and rescans only if the new set contains a root the old one lacked.
- A removal now just saves, and the UI says its projects leave the list at the next scan, within 30 minutes.
#electron#nodejs#performance#powershell
·5 min read

DailyBrief's eval harness: real model runs on a data copy, judged by pure functions
I could not tell whether a prompt change improved the daily brief. The harness runs the real pipeline on a copy of my data and judges it with unit-tested checks, including one for terse caveman prose.
In short
- npm run eval runs the real pipeline against a temp copy of the user's data and judges the output with plain functions, so a prompt change can be measured instead of eyeballed.
- The judging code is pure and unit-tested; it checks the brief's shape, forbidden task titles, trend-only warnings, unknown task ids and terse "caveman" prose.
- The real data folder is only read, and a before/after fingerprint warns if anything in it changed during the run.
#testing#llm#evals#powershell#nodejs
·6 min read

Movix · Story
My video token check trusted a header the client sent
A token bound to an IP is only as good as the IP. Mine came from a client header, and a second rule pinned everyone to one fixed address. Three small commits in April 2025 fixed it.
In short
- The requester's address came from a header the client itself sent, so an IP-bound token was bound to whatever the caller claimed.
- Validation also demanded that the request match one fixed address written into the code, a leftover that had to go.
- I switched to the address set by the reverse proxy, made the stored address the only rule, and ran one worker per CPU with respawn.
#express#security#video-streaming#nodejs
·10 min read

Renode Starter Templates: Deploy Node and Python Apps With No Setup
Six public starters for the Renode hosting platform, built around one contract: SERVER_PORT, a start script that works alone, pinned runtimes and secrets kept out of git.
In short
- The contract has four rules: bind 0.0.0.0 on SERVERPORT, expose a no-argument start command, pin the runtime, keep secrets out of git.
- The Next.js start script runs next build first, because the panel only runs npm run start and next start fails without a build.
- A missing bot token stops the process with a clear message, so the console explains the failure in the first second.
#renode#hosting#nodejs#python