Skip to content

Instantly share code, notes, and snippets.

Avatar

Graham Perrin grahamperrin

  • East Sussex, United Kingdom
  • 20:46 (UTC)
View GitHub Profile
@grahamperrin
grahamperrin / ere-trial-error.md
Last active December 18, 2022 18:45
Extended Regular Expression (ERE) trial and error
View ere-trial-error.md
@grahamperrin
grahamperrin / accessibility.md
Last active December 18, 2022 09:42
Accessibility
View accessibility.md
@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
View suspend.sh
#!/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
View freebsd-doc-fork-local.md

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-adapters.md
Last active July 14, 2022 01:51
FreeBSD: Wi-Fi: suggested adapters
View freebsd-wifi-adapters.md

FreeBSD: Wi-Fi: suggested adapters

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
View multi-account-containers-1617-a.md
@grahamperrin
grahamperrin / freebsd-boot-failures.md
Last active April 15, 2021 02:58
FreeBSD boot failures
View freebsd-boot-failures.md

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.

@grahamperrin
grahamperrin / freebsd-ports-git.md
Last active April 20, 2021 17:39
Beginning to use Git for FreeBSD ports: a rough guide
View freebsd-ports-git.md

Beginning to use Git for FreeBSD ports: a rough guide

Not for committers.

Please treat this page as work in progress during the transition to Git.

Preparations

  1. rm /var/db/gitup/ports
  2. rm -r /usr/ports/*
@grahamperrin
grahamperrin / freebsd-env-misc.md
Last active September 12, 2022 02:54
FreeBSD environments miscellany
View freebsd-env-misc.md

Miscellaneous notes on my FreeBSD environments

/etc/profile

# grep -v \# /etc/profile
export EDITOR=/usr/local/bin/nano
export VISUAL=/usr/local/bin/nano
export TERM=xterm-256color
#