Christian Lehnert — Linux, Hacking & Faith

tag: #linux

10 posts
3 months ago Separate Your Changes - The Kernel's Patch Rules Applied to LLM-Assisted Coding

The Linux kernel has had a written rule about commit hygiene since before the platforms most engineers use today existed. "Separate each logical change into a separate patch." The rule is currently being violated at an industrial scale by everyone using LLM assistants to write code, because the assistants produce sprawling multi-concern diffs by default. The kernel's discipline is the cleanest answer to the resulting mess, and it scales down to any project size.

#git #kernel #llm #linux
3 months ago Recovering Deleted Binaries from /proc

A binary deleted from disk while the process is still running is not actually gone. The kernel keeps the inode alive as long as the process holds it, and /proc/PID/exe is a real readable handle to it. You can copy a running program out of /proc and reconstruct it on disk byte for byte.

#tip-of-the-week #linux #bash #shell
4 months ago Resurrecting a flash card with f3 and dd

A 128 GB microSD started throwing ETIMEDOUT on writes. Instead of binning it, I used f3 to prove it wasn't counterfeit, then dd to force the FTL into remapping its bad blocks. The card has been healthy for two months since. A field-report on diagnosing and reviving flash storage on Linux

#linux #homelab #f3 #datarecovery
< newer 3/6 older >