Skip to content

Instantly share code, notes, and snippets.

View dch's full-sized avatar
🛋️

Dave Cottlehuber dch

🛋️
View GitHub Profile
@dch
dch / zonekeys.fish
Last active June 23, 2025 16:06
DNSSEC RR tools - use zonekeys <zone> to create the KSK that is published into the parent zone as DS RR
function zonekeys
set -l type rsa
set -l algo 8
set -l zone $argv[1]
test -d $zone || mkdir $zone
cd $zone
# generate keys if missing
test -s $zone-old.pem || ln -s canonical/51186.rsa1024.pem $zone-old.pem
test -s $zone-ksk.pem || brssl skey -gen $type:1024 -rawpem $zone-ksk.pem
test -s $zone-zsk.pem || brssl skey -gen $type:2048 -rawpem $zone-zsk.pem
@dch
dch / amdbuild.sh
Created June 20, 2025 19:18
building 14.3-RELEASE packages on 14.3-RELEASE
#!/bin/sh -eu
export __MAKE_CONF=/dev/null
umask 0022
cd /usr/src
NOW=$(date -u +%Y%m%d-%H%M)
NCPU=8
COMMIT=g$(git rev-parse --verify --short=7 HEAD)
RELEASE=/usr/obj/usr/src/amd64.amd64/release
-- vim: set filetype=lua :
--- bootstrap plugin manager
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
-- vim: set filetype=lua :
--- bootstrap plugin manager
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
#!/bin/sh
#
# $FreeBSD: tools/git-release/builds-15.conf 2804 2025-04-21 17:34:35Z cperciva $
#
# usage
# zfs destroy -vrf zroot/releng
# zfs create -o sync=disabled -o mountpoint=/releng zroot/releng
# zfs create -o mountpoint=/releng zroot/releng
# ./thermite.sh -b -d -c dch.conf
@dch
dch / rc.d
Created April 23, 2025 14:12
#!/bin/sh
#
# PROVIDE: APP
# REQUIRE: networking epmd
# AFTER: epmd
# KEYWORD:
. /etc/rc.subr
name="APP"
@dch
dch / Makefile
Created March 14, 2025 16:36
surfer
PORTNAME= surfer
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
CATEGORIES= cad
MAINTAINER= [email protected]
COMMENT= Extensible and snappy waveform viewer
WWW= https://surfer-project.org
LICENSE= EUPL12
@dch
dch / mix.exs
Created February 15, 2025 14:16
defmodule Indie.MixProject do
use Mix.Project
def project do
[version, description] = version()
[
app: :indie,
version: version,
id: description,
@dch
dch / Makefile
Created February 14, 2025 11:36
kleene
PORTNAME= kleene-daemon
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.0
DISTVERSIONSUFFIX= -rc.2
CATEGORIES= sysutils
HEXPM_VERSION= 2.1.1
MASTER_SITES+= https://builds.hex.pm/installs/1.16.0/:hex
DISTFILES+= hex-${HEXPM_VERSION}.ez:hex
@dch
dch / mca.dmesg
Created January 12, 2025 09:01
straylight mca dmesg
APEI Fatal Memory Error:
Error Status: 0x400
Node: 5
Card: 0
Bank: 0
Row: 0
Column: 0
Memory Error Type: 3
Rank Number: 0
Flags: 0x1