Skip to content

Instantly share code, notes, and snippets.

View Drafteed's full-sized avatar
🙌

Artem Draft Drafteed

🙌
View GitHub Profile
@theosnel
theosnel / wled tree mapper.py
Created December 11, 2023 19:19
wled christmas tree map generator
import json
from collections import defaultdict
matrix = defaultdict(list)
width = 30
# each row in the tree, from top to bottom.
# [first led, middle led, last led], counting from 0
input = [
@YouROK
YouROK / 1 Установка
Last active August 8, 2024 17:44
Install Antizapret to vps
Установка проверялась на Ubuntu 20.04, на других версиях может не работать
Для установки на впс зайдите на совой впс по ssh из под рута, скопируйте строку ниже и вставьте в терминал
rm install-az.sh; wget https://gist.githubusercontent.com/YouROK/21617b476ea914cc5b76d72903d6702f/raw/install-az.sh && chmod +x ./install-az.sh && ./install-az.sh
После установки, если нет подключения, то нужно добавить эти строчки перед ключами
pull-filter ignore block-outside-dns
route 8.8.8.8 255.255.255.255 vpn_gateway
route 77.88.8.8 255.255.255.255 vpn_gateway
@TheGroundZero
TheGroundZero / esphome_ir_lg.md
Last active June 4, 2025 18:05
LG infrared codes captured using ESPHome Remote Receiver
@joogps
joogps / automations.yaml
Last active July 16, 2023 13:33
Home Assistant automation for calling webostv.button on HomeKit Remote key presses
- alias: Call webostv.button on HomeKit Remote key presses
trigger:
- platform: event
event_type: homekit_tv_remote_key_pressed
event_data:
entity_id: media_player.living_room_tv
action:
- service: webostv.button
data_template:
entity_id: "{{ trigger.event.data['entity_id'] }}"
@bozzin
bozzin / fake-3d-effect-with-depth-map.markdown
Created December 3, 2019 00:22
Fake 3D effect with depth map
@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);