Skip to content

Instantly share code, notes, and snippets.

View patmaddox's full-sized avatar
🤔
Trying to figure out how to look up comments I've left

Pat Maddox patmaddox

🤔
Trying to figure out how to look up comments I've left
View GitHub Profile
@patmaddox
patmaddox / 1_messages_kabylake
Created December 6, 2022 08:00
i915kms freebsd
# with gpu-firmware-intel-kmod-kabylake installed
Dec 5 23:55:13 beastie14 kernel: iic0: <I2C generic I/O> on iicbus0
Dec 5 23:55:13 beastie14 kernel: iic1: <I2C generic I/O> on iicbus1
Dec 5 23:55:13 beastie14 kernel: drmn0: <drmn> on vgapci0
Dec 5 23:55:13 beastie14 kernel: vgapci0: child drmn0 requested pci_enable_io
Dec 5 23:55:13 beastie14 syslogd: last message repeated 1 times
Dec 5 23:55:13 beastie14 kernel: drmn drmn0: drm_WARN_ON(!IS_PLATFORM(dev_priv, INTEL_TIGERLAKE) && !IS_PLATFORM(dev_priv, INTEL_ROCKETLAKE))
Dec 5 23:55:13 beastie14 kernel:
Dec 5 23:55:13 beastie14 kernel: [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
@patmaddox
patmaddox / messages
Created December 6, 2022 06:16
i915kms fails to load on freebsd 14
Dec 5 22:14:30 beastie14 kernel: iic0: <I2C generic I/O> on iicbus0
Dec 5 22:14:30 beastie14 kernel: iic1: <I2C generic I/O> on iicbus1
Dec 5 22:14:30 beastie14 kernel: drmn0: <drmn> on vgapci0
Dec 5 22:14:30 beastie14 kernel: vgapci0: child drmn0 requested pci_enable_io
Dec 5 22:14:30 beastie14 syslogd: last message repeated 1 times
Dec 5 22:14:30 beastie14 kernel: drmn drmn0: drm_WARN_ON(!IS_PLATFORM(dev_priv, INTEL_TIGERLAKE) && !IS_PLATFORM(dev_priv, INTEL_ROCKETLAKE))
Dec 5 22:14:30 beastie14 kernel:
Dec 5 22:14:30 beastie14 kernel: [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
Dec 5 22:14:30 beastie14 kernel: [drm] Got stolen memory base 0x0, size 0x0
Dec 5 22:14:30 beastie14 kernel: drmn0: could not load firmware image 'i915/kbl_dmc_ver1_04.bin'
@patmaddox
patmaddox / port_wrapper.sh
Created December 1, 2022 01:08
elixir port wrapper
# Start the program in the background
exec "$@" &
pid1=$!
# Silence warnings from here on
exec >/dev/null 2>&1
# Read from stdin in the background and
# kill running program when stdin closes
exec 0<&0 $(
@patmaddox
patmaddox / .cirrus.yml
Last active October 31, 2022 19:49
Cirrus CI build/test/deploy config for Elixir on FreeBSD using ex_freebsd
gcp_credentials: ENCRYPTED[!...!]
# custom-built instance with some packages pre-installed to save time
# otherwise use:
# freebsd_instance:
# image_family: freebsd-13-0
# and install your packages
gce_instance:
image_project: ratio-ops
image_family: ratio-freebsd-13-1-ci
@patmaddox
patmaddox / gist:52f7b185d4b4a57449bd56779aac3c86
Created July 30, 2022 04:13
fetch dependencies for a local package file
pkg fetch -U -d -o ~/my_new_packages \
$(pkg info -R --raw-format json -F release_test-0.1.0.pkg | jq -r '.["deps"] | keys | join(" ")')
gce_instance:
image_project: ratio-ops
image_name: ratio-freebsd-13-1-ci-1657673300
platform: freebsd
zone: us-west1-a
type: n1-standard-8
@patmaddox
patmaddox / 01_README.md
Created April 7, 2019 01:19
dorico custom instruments

To add custom instruments, you need to modify some XML files under /Applications/Dorico 2.app/Contents/Resources. Only do this if you're comfortable doing something like that!

For instruments.xml and instrumentnames_en.xml, you will add new entries. I placed them after the Pianoforte entry.

If your computer isn't set to English, choose the correct localization file for your system.

For instrumentFamiliesDefinitions.xml you will replace the existing keyboards entry (essentially you add instrument.keyboard.piano.alias.part to the `` element for Keyboards.

postgres_service:
container:
image: postgres:14
port: 5432
POSTGRES_PASSWORD: ""
build_task:
freebsd_instance:
image_family: freebsd-13-1
build_script: echo "hello world"
CREATE TABLE users (id serial PRIMARY KEY NOT NULL, username text NOT NULL);
INSERT INTO users (username) VALUES ('admin');
INSERT INTO users (username) VALUES ('pat');
CREATE RULE no_delete_admin AS ON DELETE TO users WHERE username='admin' DO INSTEAD NOTHING;
SELECT * FROM users;
DELETE FROM users;
SELECT * FROM users;
PORTNAME= disport
PORTVERSION= 0.1.1
CATEGORIES= ports-mgmt
MAINTAINER= pat@patmaddox.com
COMMENT= no comment
NO_CHECKSUM= yes
NO_BUILD= yes