Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@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.

@grahamperrin
grahamperrin / freebsd-12-to-13.md
Last active May 2, 2025 20:32
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 / freebsd-from-source.md
Last active August 14, 2024 02:38
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 / 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-env-misc.md
Last active June 9, 2024 14:03
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 / freebsd-ports-git.md
Last active September 22, 2025 12:44
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-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 / multi-account-containers-1617-a.md
Last active April 30, 2021 03:10
Multi-Account Containers issue 1617 case A
@grahamperrin
grahamperrin / freebsd-wifi-adaptors.md
Last active December 27, 2025 05:35
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 / 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