Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / freebsd-update-modernised-01.md
Created October 2, 2026 01:32
Modernised use of freebsd-update for minor and major upgrades to FreeBSD

Modernised use of freebsd-update for minor and major upgrades to FreeBSD

A major upgrade example: 14.4-RELEASE to 15.1-RELEASE

All commands should be run as root.

  1. pkg update
  2. pkg upgrade -Uy -r FreeBSD pkg
  3. freebsd-update fetch
  4. freebsd-update install
@grahamperrin
grahamperrin / freebsd-plasma6-plasma-context.md
Created September 9, 2026 23:47
FreeBSD: KDE Plasma: packages associated with meta port x11/plasma6-plasma

FreeBSD: KDE Plasma: packages associated with meta port x11/plasma6-plasma

In the KDE Community Wiki, the quick start for FreeBSD includes plasma6-plasma alongside kde.

Alfonso Siciliano's work for the FreeBSD Foundation was enhanced in January 2026:

… x11/kde no longer depends upon x11/plasma6-plasma, so include plasma6-plasma in the array of packages to be installed. …

Context

@grahamperrin
grahamperrin / ai-zaconil-2026-08-06.md
Created August 9, 2026 12:58
A conversation with AI about LLMs and moderation in Reddit

A conversation with AI about LLMs and moderation in Reddit

Taken from the public paste that's currently linked from https://www.reddit.com/r/modnews/comments/1vgbt2j/comment/p1wx76o/ under What’s Next for Mod Tools : r/modnews.

User

So reddit is trying to sunset automod in favor of LLMs. As an LLM what's your opinion on this? My biggest complaint is that LLMs still struggle with context and some some subs can get 5000+ comments a day.

Assistant

@grahamperrin
grahamperrin / xCtFeukJs-E.json
Created June 8, 2026 13:59
Automated transcript of 'I Interviewed the CTO of TrueNAS (Why They Left FreeBSD for Linux)' on YouTube
{
"title": "I Interviewed the CTO of TrueNAS (Why They Left FreeBSD for Linux) - YouTube",
"url": "https://www.youtube.com/watch?v=xCtFeukJs-E",
"sections": [
{
"name": "",
"lines": [
{
"0:00": "What's up guys? I'm here with Chris who"
},
@grahamperrin
grahamperrin / ai-hatred.md
Last active September 14, 2026 03:32
Hatred of AI

Hatred of AI

I do not hate AI.

In April 2026, I described myself as a proponent of rational discussion.

In August 2026, I was profiled:

your public posts and comments lean distinctly toward the critical and cautious side of the spectrum, paired with a highly pragmatic, strictly-defined stance on utility. … a deliberate critic who actively resists the "pro-AI" narrative, preferring strict boundaries, human sovereignty in code, and clear labeling rules.

@grahamperrin
grahamperrin / pkgsave_cleanup.sh
Created March 9, 2026 07:07
pkgsave_cleanup script from Roger Marquis
#!/bin/sh -
## pkgsave_cleanup
# Archive .pkgsave files created in multiple locations by messy upgrade apps,
# preserving the original path and deleting unchanged files.
## to do:
# Check-in as appropriate.
# See also: etcupdate, zfs snapshot, beadm, ...
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
set -a
@grahamperrin
grahamperrin / freebsd-desktop-alfix-quickstart.md
Last active June 15, 2026 13:59
FreeBSD desktop installer script test: quick start

FreeBSD desktop installer script test

Quick start

  1. perform a fresh installation of FreeBSD
  2. restart
  3. run the four commands below.

cd /root

@grahamperrin
grahamperrin / pkg-unregister.8.txt
Created February 23, 2026 19:16
pkg-unregister(8) manual page – pkg version 2.5.1, FreeBSD 15.0-RELEASE-p3
PKG-UNREGISTER(8) FreeBSD System Manager's Manual PKG-UNREGISTER(8)
NAME
pkg unregister – deletes package records from the database
SYNOPSIS
pkg unregister [-fnqRy] [-Cgix] pkg-name ...
pkg unregister [-Dnqy] -a
pkg unregister [--{force,dry-run,quiet,recursive,yes}]
@grahamperrin
grahamperrin / 2026-02-14 04-08 whoopsie.md
Last active February 14, 2026 05:02
kwin_wayland segfault, 2026-02-14 04:08

kwin_wayland segfault, 2026-02-14 04:08

In Firefox, logged in at https://forums.virtualbox.org/posting.php?mode=reply&t=113890 whlist drafting a reply, I clicked to add an image. [img][/img] code appeared, so I keyed Control-T for a new tab then went to my logged in view of https://imgbb.com/.

Then probably Alt-Tab to bring Dolphin to the foreground, and whilst I began browsing screenshots, if I recall correctly:

  1. on my secondary display, an HP ZBook 17 G2 (docked), the screen became distorted
  2. apps disappeared from my main display, to the left (on DisplayPort)
  3. some apps reappeared
  4. plasmashell reappeared
@grahamperrin
grahamperrin / pkg.freebsd.org-pkg-urls.md
Last active January 31, 2026 13:14
pkg.freebsd.org package download URLs

pkg.freebsd.org package download URLs

When a FreeBSD Project-provided package is not in the usual places, we can look in unusual places.

An example: editors/vscode

Currently at https://www.freshports.org/editors/vscode/#packages:

No package information for this port in our database …