Skip to content

Instantly share code, notes, and snippets.

View jsenecal's full-sized avatar

Jonathan Senecal jsenecal

View GitHub Profile
@skippengs
skippengs / Moes_smart_knob_color.yaml
Last active July 22, 2024 20:03
ZHA - Moes Smart Knob for lights With color change
blueprint:
name: ZHA - Moes Smart Knob for lights with color change v2
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Press and rotate to smoothly step through the color temperature
Long press allows you to bind anything you want. For example, set scenes in home assistant to quickly change to a desired light temperatur and brightness.
Not all functionality of the device is available at time of writing, e.g. double press'
@starbuck93
starbuck93 / inovelli_vzm31-sn.yaml
Last active April 24, 2025 14:56
Inovelli Blue Series 2-in-1 blueprint demo for Home Assistant Z2M v2.0
blueprint:
name: Z2M v2.0 - Inovelli 2-in-1 switch + dimmer Scene Controls
description: 'For Inovelli Blue Series 2-in-1 switch + dimmer, model VZM31-SN
Allows setting a few different actions such as 2,3,4,5 clicking the up/down and
config buttons.
Updated for use with Zibbee2MQTT v2.0 with Device Actions
'
from dcim.models import *
from extras.scripts import ObjectVar, Script
class OSPPatchFrontPorts(Script):
name = "Outside Plant - Patch Front Ports"
description = "Patch all front ports through"
site = ObjectVar(
@rosswf
rosswf / k3s.md
Last active May 19, 2025 07:01
Deploy HA k3s with kube-vip and MetalLB using k3sup

Prerequisites

kubectl

Install the required tools for deploying and controlling k3s.

Installation Docs:

# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.'
@geekman
geekman / telegraf_mqtt.conf
Created January 3, 2022 16:41
Telegraf configuration to ingest Zigbee2MQTT messages
#
# configuration for zigbee2mqtt ingestation
# monitors all exposed devices, while ignoring the z2m bridge
#
[[inputs.mqtt_consumer]]
servers = ["tcp://localhost:1883"]
topics = ["zigbee2mqtt/#"]
data_format = "json"
@kralicky
kralicky / harvester-gpu.md
Last active March 1, 2025 15:40
Harvester GPU Provisioning

Harvester GPU Provisioning

  1. Install Harvester, then SSH into the server.

  2. Edit /boot/grub/grub.cfg as follows:

 set default=0
 set timeout=10
 
@santiagobasulto
santiagobasulto / server.py
Created April 4, 2021 13:21
A Python 3 debugging server based on http.server that logs every request. Use it to inspect incoming connections.
import time
from functools import partialmethod
from http.server import BaseHTTPRequestHandler, HTTPServer
import utils
class Request:
def __init__(self, method, path, headers, stream):
self.path = path
self.method = method.upper()
@myyc
myyc / arch_linux_install_guide.md
Last active August 3, 2025 23:19
Arch Linux setup with all the good stuff (Plymouth, encryption, systemd-boot etc.)

I've used this guide through 2024 despite archinstall and it's still more or less valid. After having used archinstall twice and having encountered obscure issues (luksOpen taking ages, or slow reboots in general) I switched back to a manual setup and it seems to be almost as straightforward.

Always refer to the official guide in case of doubt.

First things first

One important thing first: the environment you will encounter on the live image is very different from what you'll end up installing, some things are significantly easier there: e.g. wifi tools come

@s3rj1k
s3rj1k / HowTo
Last active August 4, 2025 21:42
Ubuntu 20.04.3 AutoInstall
# For recent versions of Ubuntu:
- https://www.pugetsystems.com/labs/hpc/ubuntu-22-04-server-autoinstall-iso/
# Docs:
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference
- https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
- https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/53
# Download ISO Installer: