Skip to content

Instantly share code, notes, and snippets.

Avatar

Alistair Young cerebrate

View GitHub Profile
@cerebrate
cerebrate / openpgp.md
Last active Nov 29, 2022
Keyoxide proof
View openpgp.md

openpgp4fpr:3CD55418C0612BC12CC122B2C492146A40FC022B

@cerebrate
cerebrate / .config
Last active Nov 26, 2022
config file for kernel 6.1.0-rc6 under WSL
View .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.1.0-rc6 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-9) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23900
@cerebrate
cerebrate / fixshm.service
Created Oct 29, 2022
Fix for /dev/shm being mounted at /run/shm under WSL.
View fixshm.service
[Unit]
Description=Fix the /dev/shm symlink to be a mount
DefaultDependencies=no
Before=sysinit.target
ConditionPathExists=/dev/shm
ConditionPathIsSymbolicLink=/dev/shm
ConditionPathIsMountPoint=/run/shm
[Service]
Type=oneshot
@cerebrate
cerebrate / tmp-.X11\x2dunix.mount
Created Sep 26, 2022
Bind mount solution for restoring WSLg under systemd
View tmp-.X11\x2dunix.mount
# /lib/systemd/system/tmp-.X11\x2dunix.mount
[Unit]
Description=WSLg Remount Service
DefaultDependencies=no
After=systemd-tmpfiles-setup.service
Before=sysinit.target
ConditionPathExists=/tmp/.X11-unix
ConditionPathIsMountPoint=!/tmp/.X11-unix
ConditionPathExists=/mnt/wslg/.X11-unix
View 0001-deb-pkg-patches.patch
From c1e9363f7812fd8d0f0bd0069d78bcb57f7d0a6b Mon Sep 17 00:00:00 2001
From: Alistair Young <avatar@arkane-systems.net>
Date: Mon, 5 Sep 2022 00:09:22 -0500
Subject: [PATCH] deb-pkg patches
---
scripts/Makefile.package | 4 +++-
scripts/package/builddeb | 7 ++++---
scripts/package/mkdebian | 7 ++++---
3 files changed, 11 insertions(+), 7 deletions(-)
View .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.15.62.1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-1) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23890
@cerebrate
cerebrate / homeassistant.yaml
Created Aug 4, 2022
Bluetooth in Home Assistant on Kubernetes
View homeassistant.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: homeassistant
name: homeassistant
namespace: homeassistant
spec:
replicas: 1
selector:
View homeassistant.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: homeassistant
name: homeassistant
namespace: homeassistant
spec:
replicas: 1
@cerebrate
cerebrate / Dockerfile
Created Jul 16, 2022
Home Assistant MySQL fix
View Dockerfile
FROM homeassistant/home-assistant:2022.7.5
RUN apk add --no-cache mariadb-connector-c
View Dockerfile
FROM archlinux:base-devel
LABEL org.opencontainers.image.authors="avatar@arkane-systems.net"
RUN pacman -Syu --noconfirm pacman-contrib git
# makepkg user and workdir
ARG pkguser=makepkg
RUN useradd --system --create-home $pkguser \
&& echo "$pkguser ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$pkguser