Skip to content

Instantly share code, notes, and snippets.

View syphernl's full-sized avatar
🚀

Frank syphernl

🚀
  • The Netherlands
View GitHub Profile
@syphernl
syphernl / ventilation.yaml
Last active May 8, 2021 09:15 — forked from SqyD/ventilation.yaml
ESPHome PWM fan using a Wemos D1 mini lite
# Controlling my Buva Qstream ventilation system using:
# * A Wemos D1 mini lite (an ESP8266 based board)
# * A Wemos power shield so I can power the Wemos from the ventilation units 12V supply.
# * A simple PWM to 10V convertor like this: https://www.cheaptech.nl/pwm-signaal-te-voltage-converter-1-3-khz-0-10-v-pw.html
# * The amazing ESPHome firmware tool: https://esphome.io
# * Home Assistant to tie it all together: https://www.home-assistant.io
#
# I used to use a Raspberry Pi and some Python code for this. See https://gist.github.com/SqyD/a927ab612df767a0cc892bcde23d025c
# The Wemos approach seems more stable and doesn't require external USB power.
@ntn888
ntn888 / lvm-cache-debian.md
Last active March 14, 2025 10:14 — forked from gabrieljcs/lvm-cache-fedora.md
Instructions to create an LVM cache for root in Debian

LVM cache in Debian

From the man-pages: "The cache logical volume type uses a small and fast LV to improve the performance of a large and slow LV. It does this by storing the frequently used blocks on the faster LV. LVM refers to the small fast LV as a cache pool LV. The large slow LV is called the origin LV. Due to requirements from dm-cache (the kernel driver), LVM further splits the cache pool LV into two devices - the cache data LV and cache metadata LV. The cache data LV is where copies of data blocks are kept from the origin LV to increase speed. The cache metadata LV holds the accounting information that specifies where data blocks are stored (e.g. on the origin LV or on the cache data LV). Users should be familiar with these LVs if they wish to create the best and most robust cached logical volumes. All of these associated LVs must be in the same VG."

Assuming LVM is already setup in HDD (e.g. from anaconda) and SSD is untouched.

Create a physical

Both things have been introduced recently, and let you access even private ec2 instances

  1. Without VPN
  2. No open SSH port
  3. Authentication / Authorization is fully delegated to IAM
# Assumes valid AWS Credentials in ENV
@tronikos
tronikos / energy_disaggregation_3p.yaml
Created October 24, 2023 08:53
Home Assistant blueprint for Energy Disaggregation or Non-Intrusive Load Monitoring (NILM) 3 phases
blueprint:
name: Energy Disaggregation
description: Approximate power usage of an appliance
domain: automation
input:
power_helper:
name: Input helper to store the approximate power usage
description: in W
selector:
entity: