diff options
| author | Henry Webster <hwebs@hwebs.info> | 2026-07-25 19:42:56 -0500 |
|---|---|---|
| committer | Henry Webster <hwebs@hwebs.info> | 2026-07-25 19:42:56 -0500 |
| commit | e22544bca3d93deb70f4cf96dcb0dc35796c8f5e (patch) | |
| tree | c27e671a6f69f893d7c4a0adc488da28b533a8fc /posts/2026-07-25_inner-thoughts.md | |
| parent | 49a50eae60ac28b9a8dd7f31ccd3987c86ba02bd (diff) | |
Inner thoughts blog post; styling tweaks
Diffstat (limited to 'posts/2026-07-25_inner-thoughts.md')
| -rw-r--r-- | posts/2026-07-25_inner-thoughts.md | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/posts/2026-07-25_inner-thoughts.md b/posts/2026-07-25_inner-thoughts.md new file mode 100644 index 0000000..b8966a6 --- /dev/null +++ b/posts/2026-07-25_inner-thoughts.md @@ -0,0 +1,47 @@ +title: Inner Thoughts Regarding an Insignificant Program +date: 2026-07-25 00:00 +--- +_All I want is the `discid` submission URL._ + +This thing I do, where I rake through `.bash_history` to find my `nix-shell` Python one-liner is ridiculous. +Perhaps I put it in `~/.local/bin`. +Then I could at least remember what to run. + +All I want is the `discid` submission URL _via a memorable script._ + +That won't work for me. +One thing I can't stand is stray Python environments marring my machine's spotless file system. +But I also can't be calling `nix-shell` all the time. +I suppose I could put it in my system config with `writePython3Bin`. + +All I want is the `discid` submission URL via a memorable script _built in my system configuration._ + +Wait, I'm always copy-and-pasting it from the terminal into the browser. +I should have the command pipe the URL into `xdg-open` so it pops right up. + +All I want is the `discid` submission URL via a memorable script built in my system configuration _that opens the page in my browser._ + +It works! +That wasn't hard at all. +This is a truly crafty set up... but pulling in all of Python is nagging me. +It's so simple, which makes it so suspect. +When I look at the C library the Python depends on, `libdiscid`, there's already an example C program that does almost exactly what I want. +I just have to shear it down a bit. + +All I want is the `discid` submission URL via a memorable script built in my system configuration that opens the page in my browser _with minimal dependencies._ + +I know the UNIX philosophy is "do one thing and do it well", but this is unreasonable. +Perhaps I can make it accept a command line argument that specifies what info from `libdiscid` to output. +There could be all sort of useful info in there. +Perhaps I can output to JSON and use `jq` to nab what I need. +Or use a simple key-value pairs and extract with `sed`. +Yes, that would be the `discid` printer of my dreams. +The one to rule them all! + +_All I want is to wring everything possible out of what `libdiscid` knows about the silly little polycarbonate platter currently in my drive and then I can finally..._ + +Never mind. + +<aside role="note"> + The resulting insignificant program can be found at <a href="https://git.hwebs.info/discidurl">https://git.hwebs.info/discidurl</a>. +</aside> |
