Skip to content

Instantly share code, notes, and snippets.

View sideeffect42's full-sized avatar

Dennis Camera sideeffect42

View GitHub Profile
@sideeffect42
sideeffect42 / skonfig-man-lint.py
Last active April 29, 2023 08:17
Lint skonfig types' man.rst files by parsing and re-serialising
#!/usr/bin/env python3
import itertools
import os
import re
import sys
import textwrap
import docutils
import docutils.nodes
@sideeffect42
sideeffect42 / mktemp.awk
Created April 12, 2022 11:33
awk-based mktemp(1) implementation (no guarantees!)
#!/usr/bin/awk -f
function count_x(tmpl) {
match(tmpl, "X+$")
return RLENGTH
}
function replace_x(tmpl, tok) {
# ATTENTION: this function destroys the template if the tok contains more
# characters than the tmpl contains Xs
@sideeffect42
sideeffect42 / pinebookpro.config
Last active November 20, 2021 20:43
Hopefully "minimal" Gentoo Linux kernel config for the PineBook Pro
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.13.4-gentoo Kernel Configuration
#
# Apply the following patches from https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/tree/5134eb0a9e3887f7b72082e68ab5ac27174a31ee:
# - 0001-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch
# - 0002-arm64-dts-rockchip-add-usb3-node-to-roc-cc-rock64.patch
# - 0003-arm64-dts-rockchip-add-typec-extcon-hack.patch
# - 0004-arm64-dts-rockchip-setup-USB-type-c-port-as-dual-data-role.patch
# - 0005-drm-bridge-analogix_dp-Add-enable_psr-param.patch