Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / freebsd-descriptive-repo-names.md
Last active June 8, 2024 16:50
Using descriptive repository names for FreeBSD-provided and locally-built packages

Using descriptive repository names for FreeBSD-provided and locally-built packages

Three distinctive names

% pkg -vv | grep ': {' | sort
  FreeBSD-base: { 
  FreeBSD-ports: { 
  local-poudriere: { 
% 
@Freaky
Freaky / zenbleed_workaround
Last active August 12, 2023 18:59
FreeBSD Zenbleed mitigation rc script
#!/bin/sh
#
# PROVIDE: zenbleed_workaround
# REQUIRE: root mountcritlocal microcode_update
# BEFORE: SERVERS
# KEYWORD: nojail resume
# Source: https://gist.github.com/Freaky/2560975d3c94246b86f464b8be75c967
#
# Copyright (c) 2023 Thomas Hurst <tom@hur.st>
@darkuncle
darkuncle / The_Rules.md
Last active June 26, 2024 18:49
The Rules - guidelines learned through hard experience in operations

NEW! Fan of the list Diego Peinador has done what I've been too lazy to do for years: stand up an easily-remembered domain for The Rules, complete with one-per-page URL schema - e.g., for Rule 42 just visit https://the-rul.es/42/

Thanks Diego! <3

(subject to additions, but rarely changes)

rule 0: It has to work.

rule 1: As simple as possible.

#!/usr/bin/env bash
# It is simple script for joining linux system to windows Active Directory domain.
# I haven't tested it after the last edit...
# Attention!!! This script can completely broken your system!
# You should not use it if you don't know what you are doing!
# Determining the system in which the script runs.
if [[ `cat /etc/centos-release | cut -d' ' -f4 | cut -d. -f1` = 7 ]]; then
os="CentOS 7"
@qis
qis / freebsd.md
Last active August 25, 2023 11:46
Installation and setup instructions for FreeBSD

FreeBSD

Installation template for FreeBSD RELEASE, STABLE and CURRENT.

Distribution Select

[ ] doc
[*] src (for building ports)