Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / git-rebase-mash.md
Created August 2, 2023 01:09
Git: when 'git rebase' is not exactly a good hint …

Notes to self.

I have no idea what might have led to conflicts involving files such as /usr/src/UPDATING

% git -C /usr/src stash
% gh repo sync grahamperrin/freebsd-src && git -C /usr/src pull --ff-only && git -C /usr/src pull --ff-only freebsd main
✓ Synced the "grahamperrin:main" branch from "freebsd:main"
Already up to date.
From https://git.freebsd.org/src
@grahamperrin
grahamperrin / ere-trial-error.md
Last active March 26, 2025 23:10
Extended regular expression (ERE) trial and error
@grahamperrin
grahamperrin / accessibility.md
Last active December 18, 2022 09:42
Accessibility
@grahamperrin
grahamperrin / suspend.sh
Last active October 10, 2022 06:33
FreeBSD sleep/wake (suspend/resume): extending rc.suspend to allow detachment of storage devices on USB, and to avoid audio-related issues
#!/bin/sh
# Save this script at a suitable path, for example
# /usr/local/sbin/suspend.sh
# then edit /etc/rc.suspend to include the path.
# Allow detachment of a USB device that is used for a ZFS pool named
# Transcend.
#
while mount | grep Transcend 2>&1; do
zpool export Transcend
@grahamperrin
grahamperrin / freebsd-doc-fork-local.md
Created December 31, 2021 10:27
Working with a local copy of my fork of the FreeBSD documentation repository

Working with a local copy of my fork of the FreeBSD documentation repository

Rough notes to self.

cd /usr/doc && rm -r *

– then remove hidden files.

git -C /usr clone -o grahamperrin -b patch-1 https://github.com/grahamperrin/freebsd-doc.git doc

@grahamperrin
grahamperrin / freebsd-wifi-adaptors.md
Last active March 16, 2025 23:31
FreeBSD: Wi-Fi: suggested adaptors

FreeBSD: Wi-Fi: suggested adaptors

There are numerous suggestions, I'm not yet aware of any other collection.

If the list below grows to become useful, someone might like to adapt its content for the FreeBSD wiki.

Suggestions, in chronological order

https://forums.freebsd.org/posts/381779 (2018-03-17)

@grahamperrin
grahamperrin / multi-account-containers-1617-a.md
Last active April 30, 2021 03:10
Multi-Account Containers issue 1617 case A
@grahamperrin
grahamperrin / freebsd-boot-failures.md
Last active April 15, 2021 02:58
FreeBSD boot failures

FreeBSD boot failures

FreeBSD-13.0-RELEASE-amd64-bootonly.iso

Written to Verbatim STORE N GO PMAP, serial 07B7050762213D03

HP EliteDesk 800 G1 SFF

UEFI: success.