Skip to content

Instantly share code, notes, and snippets.

FROM amd64/python:3
WORKDIR /
RUN mkdir /install
RUN mkdir /install/openssl
RUN mkdir /azure-stt
# updating sources
RUN apt-get update
@lumascet
lumascet / esphome.yaml
Last active December 16, 2025 18:48
FYSETC-E4 esphome roller blinds
substitutions:
device_name: "lush-cover-controller"
pulley_diameter_mm: "21.963"
gear_ratio: "1880/2000"
distance_mm: "2050"
acceleration: 500 steps/s^2
velocity: 2500 steps/s # 200 (motor steps) * ${microsteps}
back_off_steps: "200" # back off some steps to reduce stepper energize noise
open_current_x: 1000ma
@MoritzBuetzer
MoritzBuetzer / hue_automation.yaml
Last active September 17, 2024 13:02
Automation for Home Assistant. Hue Light with random color, every evening 15 Minutes before sunset until 23:45. Source: https://community.home-assistant.io/t/set-a-random-color-on-a-light/73145 and https://community.home-assistant.io/t/automation-to-set-same-random-colour-on-two-hue-lights/151343
- alias: "Turn on light with random color"
id: babc0ffa-622e-450a-a8c4-8dcddbb7e1f3
initial_state: True
trigger:
platform: sun
event: sunset
offset: "-00:15:00"
action:
service: light.turn_on
entity_id: light.hue_color_table_1
@fagnercarvalho
fagnercarvalho / commands.sh
Created October 10, 2020 20:48
Install bluealsa and pair/connect to Bluetooth device in Linux
# Install bluealsa to create interface to Bluetooth device
git clone https://github.com/Arkq/bluez-alsa.git
cd bluez-alsa
su
apt-get install libglib2.0-dev -y
apt-get install -y libasound2-dev
apt install -y build-essential autoconf
apt-get install -y libbluetooth-dev
apt-get install libtool -y
@travelhawk
travelhawk / ffmpeg_commands.md
Last active February 26, 2026 16:37
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@dglaude
dglaude / 1st_readme.txt
Last active December 2, 2025 22:04
Home Assistant Rainbow Loop with Ikea Tradfri RGB light
Please find below the various piece of code that together control my RGB light to loop in Rainbow.
Every two seconds, it change from one colour to another based on the value of the second.
So it compute 30 differents RGB value in a "circle", all with the same Saturation and Brightness both forced to 1.0
The transition from one colour to another is done in one seconds.
The name of my Tradfri RGB light bulb is "light.couleur"
A link to my video on Twitter:
https://twitter.com/DavidGlaude/status/1059596285991366657