Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

It's that time of year again!

Uncategorized
40 1 53

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    6 Views
    @mwl@io.mwl.io’s post made me revisit RCS in a very small role: a safety net for individual files.Paired with nvi, a tiny wrapper lets me snapshot configs before risky edits. Simple, local, no magic.Example wrapper I’m using:#!/bin/sh## safeedit — RCS-backed safe editing with nvi#set -eif [ $# -ne 1 ]; then echo "usage: safeedit <file>" >&2 exit 1fiFILE="$1"if [ ! -f "$FILE" ]; then echo "safeedit: file not found: $FILE" >&2 exit 1fiDIR=$(dirname "$FILE")BASE=$(basename "$FILE")RCS_DIR="$DIR/RCS"RCS_FILE="$RCS_DIR/$BASE,v"mkdir -p "$RCS_DIR"chmod 700 "$RCS_DIR"if [ ! -f "$RCS_FILE" ]; then ci -l "$FILE"else ci -u "$FILE" || true co -l "$FILE"fiexec nvi "$FILE"nvi protects the session; RCS protects the decision.Original post by @mwl@snac.bsd.cafe: https://io.mwl.io/@mwl/115814245521209100#nvi #RCS #Unix #SysAdmin #ConfigManagement
  • 0 Votes
    1 Posts
    9 Views
    do you have art? do you want to put it on a website, that *you* own, for cheap-as-free?im writing a program for that! you just drag and drop your art into a folder, and run "galleryify", and it generates html for each image, and adds everything to a thumbnail gallery. you can group with tags and style everything however you want, too.it outputs static html, so you can upload it to neocities or nekoweb or basically any free web host. the tradeoff for being cheap-as-free is that there's no server-side interactions (e.g. no comment section).i need testers! if this sounds good then please comment and let me know your level of comfort with art and with html.https://nycki93.github.io/eleventy-image-gallery/if you just wanna know "the stack", this is made with NodeJS and Eleventy. if that doesn't mean anything to you, dont worry about it.EDIT: wow, a lot of you said you'd be interested in testing! Okay, I've just put some usage instructions up on this page, please try it out and let me know how it goes!https://github.com/nycki93/eleventy-image-gallery/#website #art #code #programming #html #heycohost #eleventy
  • #programming

    Uncategorized programming
    1
    1
    0 Votes
    1 Posts
    7 Views
    #programming
  • 0 Votes
    1 Posts
    11 Views
    Migrated my ZigBee2MQTT to BSD, of course running inside a Jail (and with IPv6!) 🙂 All running perfectly fine and as stable as you'd expect from FreeBSD Plus the rc.d script is so minimalistic and simple, that I don't get it, why anyone would prefer intransparent systemd to that!Another part of my home-infrastructure migrated over! #freebsd #jais #zigbee #mqtt #smarthome #unix #homelab