Skip to content

Instantly share code, notes, and snippets.

@pacioc193
pacioc193 / script.js
Last active January 15, 2026 08:36
Blue TRV with XIAOMI LYWSD03MMC as external sensor
/**
* UNIFIED HEATING CONTROLLER v21 (Clean Logs & Always Visible Params)
* * LOGIC:
* - Cycle Time: Every ~30s.
* - TRV Data: Read and Logged EVERY cycle (Always visible).
* - Pushing: Happens only every N cycles (defined by CYCLES_PER_PUSH).
* - Logs: "PUSHING" appears only when data is actually sent.
*/
// --- CONFIGURATION ---
@Jarmos-san
Jarmos-san / Dockerfile
Last active September 23, 2025 13:28
An example multi-stage Dockerfile for use Python's poetry package manager
# Set the working directory globally
ARG SOURCEDIR="app"
# Pin the Python version to use
# See the following article to learn more about choosing the right base image
# https://pythonspeed.com/articles/base-image-python-docker-images
ARG PYTHONVERSION="3.11-slim-bookworm"
# Createh the base image for generating the requirements file
FROM python:${PYTHONVERSION} AS builder
@renatoccosta
renatoccosta / install-ha-opi5.adoc
Last active April 24, 2026 14:33
Install Home Assistant on OrangePi 5

Installing Home Assistant on OrangePi 5 Board

This tutorial will enable the use of Home Assistant on an OrangePi 5 board with the following characteristics:

  • OrangePi Debian OS

  • OS running on a SDCard

  • Home Assistant Supervised Instalation

The steps are a compilation with few modifications from instructions found over the web. Links are at the end.

@colemar
colemar / #wg-peer.md
Last active February 17, 2025 13:01
Manage Wireguard peers (IPv4 only)

Manage Wireguard peers (IPv4 only)

List, add or delete Wireguard peers. Also show client configuration for already added peers.

wg-peer [add [<desc>]|show <peer>|del <peer> ...|list]

where:

  • a[dd] add a new peer
@gwisp2
gwisp2 / Dockerfile
Created April 6, 2022 17:06
rtl_433_docker: workaround for udev symlink to devices
FROM hertzg/rtl_433:latest
RUN apk add --no-cache eudev
COPY --chmod=755 entrypoint.sh /opt/
ENTRYPOINT '/opt/entrypoint.sh'
@Jelle-S
Jelle-S / install_ha_vb.sh
Last active November 4, 2025 04:46
Install Home Assistant on VirtualBox
# Installs Home Assistant on VirtualBox following https://www.home-assistant.io/installation/linux
# Install VirtualBox
sudo apt-get -y install virtualbox
# Create a new VM
VBoxManage createvm --name homeassistant --register
# Select OS type "Other Linux (64-bit)"
VBoxManage modifyvm homeassistant --ostype Linux_64
# Set RAM to 6GB (modify to your needs, TODO: make this an option, default value 2GB), video memory to 16MB (TODO: make this an option, default value 16MB)
VBoxManage modifyvm homeassistant --memory 6144 --vram 16
# 2 vCPUs (TODO: make this an option, default value 2)
@alexymik
alexymik / config.txt
Created June 15, 2021 19:54
Raspberry Pi PI2SCART config.txt Display Settings
# Edit your config.txt on SD Card to
disable_audio_dither=1
dtparam=audio=on
dtoverlay=vga666
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1 #240p
@ofou
ofou / servers.csv
Created April 11, 2021 06:15
List of servers to test speedtest-cli
We can't make this file beautiful and searchable because it's too large.
Country,City,Provider,Host,ID
Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058
Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089
Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714
Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622
Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019
Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807
Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189
Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501
Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798
@Pablohn26
Pablohn26 / README.md
Created March 5, 2021 14:16
Migrate from Home Assistant container (docker-compose) to Home Assistant Supervised

We want to migrate from Home Assistant Container (docker-compose.yml) to Home Assistant Supervised.

The main idea is to copy the /config file from docker container to main Home Assistant Supervised config folder (/usr/share/hassio/homeassistant by default)

To do so, first we need the path to the source /config folder, in my case /root/compose/ha/config

Then we need to know the path to the destination /config folder, /usr/share/hassio/homeassistant using Home Assistant Supervised default installation

The steps are:

  1. Install Home Assistant Supervised