Oddbean new post about | logout

Notes by Justine Smithies | export

 I'm needing some #FreeBSD 14.1 sed assistance as my blarg blog script is now failing under FreeBSD.
When this line runs:

echo "$filename" | sed -r 's|\w+/(.*).md|build/\1.html|'

I get this error:

sed: 1: "s|\w+(.*).md|build/\1.h ...": RE error: trailing backslash (\)

I tried removing the \ before the w and the error goes away but the sed line doesn't do anything then ?
It is supposed to change any .md file paths into build/*.html
For example if it gets posts/my-first-freebsd-server.md it should output build/my-first-freebsd-server.html
This worked on #ChimeraLinux and #VoidLinux

I have noticed this but not sure if it's relevant ????
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253893#c11

Any ideas please and thank you ? ❤️
 
 So I've been running my own #Snac instance for the past week and I have to say that I'm actually loving it. It hardly takes up any resources and the inbuilt web interface is easily configurable with nothing more than #CSS .
There are some things that folk used to running #Mastodon might not like. For example it does not show any follower or following numbers to any instances. So people using Mastodon will see 0 followers and 0 following even though those Snac uses may have 100's of followers .
You do get a people tab on the snac interface that is just a list divided into people following you and people you follow but no numbers. This is an intentional design feature by the author @The Real Grunfink who stated.
I haven't implemented a simple count of following / followers on purpose; I consider all metrics in network media inherently toxic, because it's a way of comparing the relative success of people. This is also why, as seen from other Fediverse implementations, snac accounts always report 0 / 0 connections.
Also not all features work with android /  iOS apps but most of the essentials do. I occasionally use #Tusky when I'm not just using the web interface for Snac which I just find easier. I think I will be staying with this fantastic lightweight piece of software and look forward to see what new features get added in the future. A wish would be to have a way of importing followers from Mastodon to Snac, which I think the dev is working on at the moment. Oh and I nearly forgot to say that you can import the CSV file of people that you are following through the command line and it's fairly simple to do too. I'd 100% recommended giving Snac a try if you're looking for a no nonsene lightweight #Fediverse instance.

https://codeberg.org/grunfink/snac2

 
 Just updated the packages on all of my #FreeBSD Bastille jails with one line. What magic is that you might ask ?

bastille pkg ALL upgrade

That is it. Simples. 🙃
 
 Right I've set how long my #snac instance keeps local posts to 180 days until I see how much space this instance might eat up. If it's not too bad I may increase it or put it back to it's default of 0 which means keep all local posts. Only time will tell. ;)