Skip to content

Instantly share code, notes, and snippets.

View LuNeder's full-sized avatar

Luana LuNeder

View GitHub Profile
@lbschenkel
lbschenkel / 00-README.md
Last active September 14, 2025 15:28
ESPhome example for smart light switches controlling smart lights via HASS that degrade to dumb mode automatically

Posting by request from https://www.reddit.com/r/homeassistant/comments/1hufw9c/i_got_my_shellys_to_keep_working_in_case_of_a/

My ESPHome file is higly modularized with a lot of other functionality that is not relevant right now, so here's an extract of the relevant bits. It's a bit more verbose than usual because it's the output of ESPHome validation process, which dumps the processed YAML after "expanding" it.

Context:

  • light switch is a Shelly, but not really relevant — any ESP relay with a button would work
  • connected to the relay are smart lights talking Zigbee
  • when switch is "smart", relay remains on all the time and switch talks to HASS that turns on/off the light accordingly
@al3xtjames
al3xtjames / flake.nix
Last active November 2, 2025 16:00
Thunderbolt NVM firmware
{
description = "Minimal NixOS installation media";
inputs.nixos.url = "nixpkgs/nixos-23.11";
outputs = { self, nixos }: {
nixosConfigurations = {
exampleIso = nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
({
@thesamesam
thesamesam / xz-backdoor.md
Last active November 30, 2025 22:27
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@reduz
reduz / GPU_driven_renderer.md
Last active June 1, 2025 20:02
GPU Driven Renderer for Godot 4.x

GPU Driven renderer design for Godot 4.x

Goals:

The main goal is to implement a GPU driven renderer for Godot 4.x. This is a renderer that happens entirely on GPU (no CPU Dispatches during opaque pass).

Additionally, this is a renderer that relies exclusively on raytracing (and a base raster pass aided by raytracing).

It is important to make a note that we dont want to implement a GPU driven renderer similar to that of AAA/Unreal, as example.

@reduz
reduz / godot_vision_pro.md
Last active October 15, 2024 03:00
Godot on Vision Pro and similar devices

Vision Pro style API on Godot

Overview

Apple recently unveiled the Vision Pro. This type of device is mostly designed for augmented reality (AR), in the sense that it should be able to throw 3D models and rendering combined into a camera.

Normally with pass-through AR, one would expect to get the camera feed as an image and maybe some environment cubemap generated from the camera to apply proper lighting into the objects.

@mkg20001
mkg20001 / xfce4-hm.sh
Last active May 26, 2024 19:11
Get XFCE4 xfconf settings as home-manager configuration
#!/usr/bin/env bash
# Note: unsupported elements such as arrays with non-strings will be returned as "<<UNSUPPORTED>>"
echo "xfconf.settings = {"
for m in $(xfconf-query -l); do
echo " $m = {"
for p in $(xfconf-query -l -c $m); do
v=$(xfconf-query -l -c $m -p $p -v | sed "s|.* ||g")
echo " \"$(echo "$p" | sed "s|^/||g")\" = \"$v\";"
@thotypous
thotypous / rede_de_dormir.py
Last active October 20, 2024 23:18
Cálculo do comprimento ideal de uma rede de dormir
#!/usr/bin/env python
from sympy import sinh, acosh, sqrt, nsolve, Symbol, Float
def calcular_rede(altura_rede, altura_ganchos, distancia_ganchos):
H = distancia_ganchos
h = altura_ganchos - altura_rede
a = Symbol('a')
L = Symbol('L')
@danmack
danmack / nix-alpine.org
Last active September 28, 2025 12:51
install NIX package manager on Alpine Linux

NIX Package Manager Install on Alpine Linux

System Information

  • alpine 3.17.1, 3.18, 3.19 and edge x86-64
  • multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
  • edge, testing apk repos enabled

Preparation

@shinyquagsire23
shinyquagsire23 / Linux_building.txt
Last active December 6, 2025 18:40
Monado macOS and Linux Quest Link Build Guide
#
# Installing dependencies (Tested on Ubuntu 22.04 LTS)
#
# Monado
sudo apt install cmake ninja-build
sudo apt install build-essential git wget unzip cmake ninja-build libeigen3-dev curl patch python3 pkg-config libx11-dev libx11-xcb-dev libxxf86vm-dev libxrandr-dev libxcb-randr0-dev libvulkan-dev glslang-tools libglvnd-dev libgl1-mesa-dev ca-certificates libusb-1.0-0-dev libudev-dev libhidapi-dev libwayland-dev libuvc-dev libavcodec-dev libopencv-dev libv4l-dev libcjson-dev libsdl2-dev libegl1-mesa-dev libbsd-dev
# XRSP (Quest Link USB)
sudo apt install capnproto libcapnp-dev libx264-dev nlohmann-json3-dev
@alekc
alekc / printer.cfg
Last active November 23, 2025 12:49
Ender5 Pro klipper
[include mainsail.cfg]
# This file contains pin mappings for the stock 2020 Creality Ender 5
# Pro with the 32-bit Creality 4.2.2 board. To use this config, during
# "make menuconfig" select the STM32F103 with a "28KiB bootloader" and
# with "Use USB for communication" disabled.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select the
# USART3 serial port, which is broken out on the 10 pin IDC cable used
# for the LCD module as follows: