emirmrkaljevic

joined 2 days ago
 

Since Ubuntu started shipping the Rust rewrite of coreutils by default, I got curious how close it really is to the GNU tools in day to day edge cases.

So I wrote a small recorder. It runs a CLI on a few hundred cases and saves what it did: stdout, stderr, exit code and the files it touched. Then it replays the same cases against another binary and shows the diffs.

Pointed at GNU coreutils 9.12 vs uutils, most differences were not crashes. They were error message wording, exit codes, option parsing corners (a bare - being taken as an option value) and a few things that turned out to be GNU version differences rather than bugs.

I reported what I found upstream: 44 bug reports and 51 small fix PRs so far, 34 merged. The uutils folks have been great to work with.

The tool is open source (MIT), works on any CLI, not only coreutils: https://github.com/emirmrkaljevic/behave

Curious if anyone here has run into a uutils difference that broke a script for them.

 

I built ShrinkWatch EU, a free browser extension for Firefox and Chrome (Manifest V3). On about 70 EU supermarket web shops (Lidl, Kaufland, Carrefour, Albert Heijn and others) it shows the price per kg or litre and warns about shrinkflation, meaning a pack that gets smaller while the price stays the same.

On privacy: everything runs locally in your browser. There is no account, no tracking, no analytics, and no data leaves the browser. Site access is requested per shop and only granted when you enable it. The code is MIT licensed.

It is an early project, so bugs and missing shops are likely, and feedback is very welcome. Source code and issues: https://github.com/emirmrkaljevic/shrinkwatch-eu

Thanks. If you go for one of the cheaper decks, check DeckBridge and python-elgato-streamdeck first, a lot of the MiraBox/Ajazz style clones are already covered there, so you might not need to reverse anything.

Partly. The capture side is USB specific (it reads usbmon/USBPcap pcapng, endpoints and control setup packets), but the inference part is not: it diffs payloads between labelled actions and looks for constant headers, counters, length fields, checksums and value fields. Network protocols would mostly need a different front end that feeds it TCP/UDP payloads. That isn't built in today. For network protocols Netzob is worth a look, it has been doing that kind of inference for years. File formats are harder because you rarely get clean "I changed exactly one thing" pairs, but the same diffing trick works if you save the file twice with one setting changed.

 

I built ShrinkWatch EU myself. It works on Firefox and Chrome and covers 70+ EU grocery web shops (Lidl, Kaufland, Carrefour, Albert Heijn, Rewe, Tesco). It remembers pack sizes locally and warns when a product shrinks. There is no account and no tracking, and feedback on shops it misreads is welcome.

 

A lot of small hardware (AIO cooler screens, RGB hubs, stream decks, case LCDs) only ships a Windows app, and the usual route to Linux support is someone staring at Wireshark for an evening. I built usb-rea to do the step after Wireshark.

You capture with usbmon on Linux or USBPcap on Windows, label what you clicked in the vendor app (brightness 0, 50, 100, fan 30%, and so on), and it infers the command layout: constant headers, which byte follows which setting, counters, checksums like CRC16, lookup tables and image streams. It then writes a Markdown report where every claim points to Wireshark frame numbers, plus a standalone pyusb driver.

On public captures of the NZXT Kraken X it recovers the fan command byte for byte as liquidctl sends it, and the generated driver produces identical packets for values it never saw. It is alpha, MIT, pip install usb-rea, and usb-rea demo --device fan runs without any hardware.

If you have a device that only works on Windows, I am happy to run a capture through it and post the result.