#!/usr/bin/tail
@b0rk.jvns.ca Re unbuffering `tail | grep`, I used to use Tcl's Expect to do exactly that:
```
#!/usr/bin/expect
spawn bash -c ""

expect {
-re "PATTERN\n" {
puts "$expect_out(1,string)"
exp_continue
}
}
```
Not sure this still works.
December 3, 2024 at 7:18 PM
This is pretty cool: a @containerd.dev shim to run LLMs with ollama. The shim augments the image by mounting in the ollama binary, generating a Modelfile as input to ollama (based on the model bundled in the image), and setting an entry point.
April 2, 2025 at 3:40 PM
text classifier implemented in bash
July 15, 2025 at 12:19 PM
Hello world in 12 bytes of tail code:

$ cat a.tail
#!/usr/bin/tail -1
hello world
$ ./a.tail
hello world
$

But it’s wasteful because it uses an entire byte to represent just one letter.
Pfft I could write hello world in Python in 22 bytes. 🙄
February 20, 2025 at 7:12 PM
#!/usr/bin/tail +2
Hello World
August 23, 2025 at 4:38 PM