Skip to content

shrimple πŸ‡΅πŸ‡± πŸ³οΈβ€βš§οΈ

shrimple mind. shrimple problems. complex solutions. she/her

Tag: offpunk

Simplistic reconciliation of mostly-append text files like Offpunk lists: draft involving Kahn’s algorithm

Posted on February[²⁰26], Monday 09. By Shrimple No Comments on Simplistic reconciliation of mostly-append text files like Offpunk lists: draft involving Kahn’s algorithm

I have been thinking about managing my Offpunk list files that I might be modifying on either, or both, my netbook and some main laptop. Since this is mostly about new parts that might have gotten added, I didn’t want to introduce some full-blown version control to this. Instead, I figured that I could start ensuring the files end with a time-specific marker when was the file last appended before sync that would also be useful to the human…

Read More “Simplistic reconciliation of mostly-append text files like Offpunk lists: draft involving Kahn’s algorithm” »

Wild Software Writing

Subscription into list rather than tour β€” Offpunk draft feature patch

Posted on January[²⁰26], Thursday 29.January[²⁰26], Friday 30. By Shrimple 2 Comments on Subscription into list rather than tour β€” Offpunk draft feature patch

Offpunk has a feature where any updated links from a subscribed list will be added to tour on sync. I expanded on that feature by making it possible to parameterize #subscribe with a list name like #subscribe(some_list_name) to the result of the links getting added to that list, with just the one link to that list getting added to tour.

Read More “Subscription into list rather than tour β€” Offpunk draft feature patch” »

Wild Software Writing

Slash-hierarchical list names β€” my draft implementation for Offpunk

Posted on January[²⁰26], Thursday 29.January[²⁰26], Friday 30. By Shrimple 2 Comments on Slash-hierarchical list names β€” my draft implementation for Offpunk

More draft patches for Offpunk from me that I haven’t particularly tested much yet.

Offpunk has no support for slash-containing list names β€” it just crashes on an attempt, because the names are neither supported by creating directories nor sanitized to not contain slashes. I wrote a patch for that. And another to make the all lists view, and other logic involving iterating through all lists like subscriptions and syncs, traverse them all, flatly for now.

Read More “Slash-hierarchical list names β€” my draft implementation for Offpunk” »

Wild Software Writing

Bugfix for list URI for my Offpunk redirections implementation draft

Posted on January[²⁰26], Thursday 29.January[²⁰26], Friday 30. By Shrimple 1 Comment on Bugfix for list URI for my Offpunk redirections implementation draft

On top of Amending my Offpunk redirection implementation, I have now fixed the issue where list:/// would get turned into list:/ URIs when there would be a redirection rule for just a wildcard netloc, such as one that for any URL purges the utm_source tracking query parameter. That was resulting in user’s inability to list any list.

I have introduced an exception that requires redirections to be explicitly applicable only to list: URIs in case of list URIs.

Read More “Bugfix for list URI for my Offpunk redirections implementation draft” »

Wild Software Writing

Amending my Offpunk redirection implementation

Posted on January[²⁰26], Sunday 25.January[²⁰26], Thursday 29. By Shrimple 2 Comments on Amending my Offpunk redirection implementation

As it turned out the next afternoon, my code was buggy.

This is a sequel to the post Experimentally expanding Offpunk browser Part 1 (nightly) from yesterday.

The blocked domains were saving as redirection with destination URL interpreted as //BLOCK/, deleting redirections was broken because of the same CLI parsing issue, and it was still only possible to have one rule for one domain glob, no matter how specific through the criterions.

The only reason why -silent was working for them was because of this.

I am now hashing the entire criterion into the dict, and for that I had to add frozendict dependency to the project because good to write words sometimes, because I just turned that into a tuple.

More bugs found: especially that I didn’t really apply the specificity of the rules to BLOCK rules, and they were always acting on the netloc regardless. Now lemme just drop you the patches right below. First is a tiny patch for more predictable behavior of fragment templating, then the big one.

Update: I posted another bugfix post to this draft implementation of mine, see Bugfix for list URI for my Offpunk redirections implementation draft

Note: this post publishes the patches, but doesn’t diff any code nicely. These patch files are not exactly made for directly reading except for the commit message of the longer one, which I will maybe paste here too:

Read More “Amending my Offpunk redirection implementation” »

Wild Software Writing

Experimentally expanding Offpunk browser Part 1 (nightly)

Posted on January[²⁰26], Sunday 25.January[²⁰26], Thursday 29. By Shrimple 2 Comments on Experimentally expanding Offpunk browser Part 1 (nightly)

https://offpunk.net ← that’s the original project that this might get upstreamed to in some parts


Note: since publication I have found numerous bugs in my implementation. Rewrites upcoming. I just can’t work silently without at least a blog post every day.

Update: now please apply the subsequent patches before trying out anything. The code here below was bad.
Here is the new post: Amending my Offpunk redirection implementation


What does my large patch bring? (a post-publish added summary)

So far, Offpunk only allows you to redirect from one netloc (usually host or host:port) to another. At that, it won’t match if the origin netloc had an explicit port number specified. I wanted a redirections engine that would allow me to redirect to a different port, on a different host, under a path and with some suffix β€” like .json.

I also wanted to eliminate the hardcoded redirects and domain blocks and put them into a user’s rc file. But that required adding them to user’s rc. I didn’t want to alter a user’s existing offpunkrc, so I came up with the idea to create a pre-rc for the user (later, only such that would already have their rc, as new users can just get the actual rc pre-filled and only get a pre-rc created if new defaults come from upstream).

Read More “Experimentally expanding Offpunk browser Part 1 (nightly)” »

Wild Software Writing

Atom feed for this page

Atom feed for this blog

against-messy-software bash big.ugly.git.patch. chromium-and-derivatives community fragment golang kde links2 linux microsoft-edge network offpunk offpunk:lists offpunk:redirections oss-contributing perl programming-tips scripting smolweb subscribe superuser window-decorations Wordpress_ActivityPub_plugin

  • February 2026 (4)
  • January 2026 (10)

Categories

  • Influencing Society

    (1)
  • Meta

    (2)
  • Oddities of alternate reality

    (1)
  • Programming Technologies

    (1)
  • Software Imposed On Us

    (1)
  • Wild Software Writing

    (8)
shrimple πŸ‡΅πŸ‡±  πŸ³οΈβ€βš§οΈ
shrimple πŸ‡΅πŸ‡± πŸ³οΈβ€βš§οΈ
@shrimple@www.shrimple.pl
Follow

shrimple mind. shrimple problems. complex solutions. she/her

14 posts
5 followers

Follow shrimple πŸ‡΅πŸ‡± πŸ³οΈβ€βš§οΈ

My Profile

Copy and paste my profile into the search field of your favorite fediverse app or server.

Your Profile

Or, if you know your own profile, we can start things that way!
  • Simplistic reconciliation of mostly-append text files like Offpunk lists: draft involving Kahn’s algorithm Wild Software Writing
  • Experimentally expanding Offpunk browser Part 1 (nightly) Wild Software Writing
  • Forcing KWin decorations and MS Edge’s 1cm shadow gradient Software Imposed On Us
  • Slash-hierarchical list names β€” my draft implementation for Offpunk Wild Software Writing
  • Links 2, a graphical browser I wanna build upon. And a quick look at how ELinks is doing. Wild Software Writing
  • when DMI info like Serial not in hostnamectl output Oddities of alternate reality
  • What if we organized a different kind of hackathon Influencing Society
  • Subscription into list rather than tour β€” Offpunk draft feature patch Wild Software Writing

shrimple@shrimple.pl

Copyright © 2026 shrimple πŸ‡΅πŸ‡± πŸ³οΈβ€βš§οΈ.

Powered by PressBook News WordPress theme