Skip to content

Instantly share code, notes, and snippets.

View cerebrate's full-sized avatar

Alistair Young cerebrate

View GitHub Profile
@cerebrate
cerebrate / homeassistant.yaml
Created August 4, 2022 03:43
Bluetooth in Home Assistant on Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: homeassistant
name: homeassistant
namespace: homeassistant
spec:
replicas: 1
selector:
@cerebrate
cerebrate / fixshm.service
Created October 29, 2022 21:29
Fix for /dev/shm being mounted at /run/shm under WSL.
[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 / 05-homeassistant-alexa-ingress.yaml
Last active January 26, 2024 19:15
Exposing HA to Alexa via Tailscale
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: homeassistant-alexa-ingress
namespace: homeassistant
annotations:
tailscale.com/funnel: "true"
spec:
ingressClassName: tailscale
@cerebrate
cerebrate / README.md
Last active December 2, 2023 08:17
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

WARNING

THIS GIST IS EXTREMELY OBSOLETE. DO NOT FOLLOW THESE INSTRUCTIONS. SERIOUSLY.

IF YOU IGNORE THE ABOVE WARNING, YOU AGREE IN ADVANCE THAT YOU DIDN'T GET THESE INSTRUCTIONS FROM ME, THAT I WARNED YOU, AND THAT I RESERVE THE RIGHT TO POINT AND LAUGH MOCKINGLY IF AND WHEN SOMETHING BREAKS HORRIBLY.

I'll do a write-up of current custom-kernel procedures over on Random Bytes ( https://randombytes.substack.com/ ) one day soon.

NOTE

#
# 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 / .config
Last active October 12, 2023 12:32
config file for kernel 6.1.0-rc6 under WSL
#
# 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 / mastodon-chart-values.yaml
Created June 11, 2023 17:19
Mastodon Helm configuration
---
apiVersion: v1
kind: ConfigMap
metadata:
name: mastodon-chart-values
data:
values.yaml: |-
# Configuration values for Mastodon
image:
repository: ghcr.io/glitch-soc/mastodon
@cerebrate
cerebrate / assist_flow.json
Created May 12, 2023 17:45
A flow to integrate Mattermost and Home Assistant Assist.
[
{
"id": "a40d0f65c38c036e",
"type": "comment",
"z": "7e65c3881fee1899",
"name": "Incoming message processing",
"info": "",
"x": 160,
"y": 40,
"wires": []
@cerebrate
cerebrate / tmp-.X11\x2dunix.mount
Created September 26, 2022 18:44
Bind mount solution for restoring WSLg under systemd
# /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
@cerebrate
cerebrate / openpgp.md
Last active November 29, 2022 22:36
Keyoxide proof

openpgp4fpr:3CD55418C0612BC12CC122B2C492146A40FC022B