Plain data in Rust can be surprisingly verbose.
I thought I wanted:
enum Action { Changed, Unchanged }
but it turned out I wanted this instead:
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
enum Action { Changed, Unchanged }
miniblog.
Related Posts
TIL about actionlint, a static analysis tool for GitHub action YAML files: https://github.com/rhysd/actionlint
Seems really useful, developing actions can be tricky.
OpenSSH will send packets at 20ms intervals to prevent network timings revealing what you're typing: https://undeadly.org/cgi?action=article;sid=20230829051257
Really elegant solution!
earlyoom is a neat linux tool that kills processes a little earlier, so your system remains responsive: https://github.com/rfjakob/earlyoom
The readme is pretty educational too, and even encourages you to `tail /dev/zero` to see it in action!