Skip to content

Instantly share code, notes, and snippets.

View cerebrate's full-sized avatar

Alistair Young cerebrate

View GitHub Profile
@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 / 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 / openpgp.md
Last active November 29, 2022 22:36
Keyoxide proof

openpgp4fpr:3CD55418C0612BC12CC122B2C492146A40FC022B

@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 / 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 / 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
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(-)
#
# 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 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: