Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@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-adapters.md
Last active March 28, 2024 09:41
FreeBSD: Wi-Fi: suggested adapters

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
@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.

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

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 April 20, 2024 18:41
FreeBSD environments miscellany

Miscellaneous notes on my FreeBSD environments

/etc/csh.cshrc

#
# System-wide .cshrc file for csh(1).

setenv PATH /usr/local/libexec/ccache:$PATH
setenv CCACHE_PATH /usr/bin:/usr/local/bin
@grahamperrin
grahamperrin / userChrome.css
Created March 9, 2021 06:41
Graham Perrin's userChrome.css for Firefox
/* https://old.reddit.com/r/firefox/comments/f942u2/profilespecific_problem_with_an_extension_button/ */
#TabsToolbar {
visibility: collapse;
}
*{ transition-duration: 50ms !important }
/* a close button on the left of each tab */
/* https://support.mozilla.org/questions/1157451#answer-961582 */
/* https://support.mozilla.org/questions/1157451#answer-961663 */
.tabbrowser-tab .tab-close-button {
@grahamperrin
grahamperrin / freebsd-from-source.md
Last active December 13, 2023 10:40
Updating FreeBSD -CURRENT from source, and more

Notes:

  • the routine is personalised – things such as SDDM and graphics/x11/nvidia-driver-470 in the mix, and the longhand helps me to not make mistakes after being distracted (or falling asleep at the keyboard, or whatever)
  • /bin/csh for all commands below, some no longer require root since I changed ownership of /usr/doc, /usr/obj, /usr/ports, and /usr/src.

Routine

  1. su -
  2. pkg lock -l
  3. pkg unlock emulators/virtualbox-ose-kmod graphics/drm-510-kmod graphics/drm-515-kmod
@grahamperrin
grahamperrin / freebsd-12-to-13.md
Last active September 17, 2023 19:33
Upgrade FreeBSD 12.⋯ to FreeBSD 13

Preamble

If you want future FreeBSD update and upgrade routines to be simpler: please support the PkgBase initiative. See, for example, https://alpha.pkgbase.live/.


Guidance below is for 12.⋯ systems that:

  • fall below 12.2-RELEASE-p4 (12.2 patch level 4)
  • boot from ZFS (not UFS).
@grahamperrin
grahamperrin / tab-hiding-extensions.md
Created February 28, 2021 18:32
Extensions for Firefox that can hide tabs

Not all extensions that offer to hide tabs use Mozilla's tabs.hide() API.

Simple Tab Groups

Does use the API.

When hidden tabs are restored, not all are loaded. This is good for performance.

When first added to a clean Firefox profile, the first move of a tab to a group is followed by the standard alert, from Firefox, that an extension has hidden a tab.