shawwn/scrap
View on GitHub ↗ ★ 136 Python
Nearly a thousand bash and python scripts I've written over the years.
7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2020-02-01 · latest 2026-07-22
20082026
-
…Specifically, I serve the model with this shell script on my M2 Max: https://github.com/shawwn/scrap/blob/master/llama-serve It's pretty good. I used it to do some pesticide research. (Normal models all refuse due to guardrails
comment by sillysaurusx · 2026-07-22 · in OpenAI and Hugging Face address security incident during model evaluation -
If you throw this script into your PATH, you can write: $ math ‘5510^9 (3.17*10^-8)’ 1743.5000 https://github.com/shawwn/scrap/blob/master/math It’s a wrapper around bc, but it’s one of my most-used scripts. Doing some quick math in the…
comment by sillysaurusx · 2022-11-18 · in “Judas goats” were once key players in meatpacking plants -
Amusingly, I apparently added these to scrap https://github.com/shawwn/scrap many years ago. I named them 1st, 2nd, 3rd, and 4th. So I guess I never needed to count to 5, but I'm still two ahead of Valve.…
comment by sillysaurusx · 2022-01-08 · in Why “process substitution” is a late feature in Unix shells -
…my own script: I'm proud to present the most useful, least-work script I've ever written: `math` https://github.com/shawwn/scrap/blob/master/math #!/bin/sh scale=4 # results will print to the 4th decimal echo "scale=$scale; $@" | bc -l It…
comment by sillysaurusx · 2021-12-23 · in SpeedCrunch -
…modifications. If you want to convert .epub files to .txt for your own use, the script is here: https://github.com/shawwn/scrap/blob/master/epub2txt-all It has a rather cryptic name of "epub2txt-all". Sorry about that. But the script…
comment by sillysaurusx · 2020-10-25 · in Books in .txt format for AI training purposes -
…information is available to you. I suggest you try it before dismissing the idea, as I once did. https://github.com/shawwn/scrap is what I use. `codefiles | grep js$ | xargs merge | ft js` will open all javascript codefiles in vim, in JS…
comment by sillysaurusx · 2020-07-11 · in Ask HN: How do you learn new libraries without much documentation? -
Ok, go ahead and port all 200 of these scripts to Python please: https://github.com/shawwn/scrap PR's welcome. ;) Python makes sense for scripts that need good argument parsing, or complicated intermediate input processing. But it's pretty…
comment by sillysaurusx · 2020-02-01 · in Writing Safe Shell Scripts (2019)