Skip to content

Instantly share code, notes, and snippets.

View C0ntroller's full-sized avatar
🐧

Daniel C0ntroller

🐧
View GitHub Profile
@C0ntroller
C0ntroller / download.py
Last active July 7, 2023 16:31
Download and EXIF-tag Snpachat memories
# 1. Request Snapchat data archive here: https://accounts.snapchat.com/accounts/downloadmydata
# - DO NOT enable "Include your Memories and other saved Media"!
# 2. Wait for your archive to be ready and download it
# 3. Search for "memories_history.json" in the "json" directory in the archive
# 4. Put it right next to this script
# 5. Run the script
# - Be sure to have all requirements installed. See below for the pip command you need to run.
# 6. Output is stored in "memories" directory next to the script
# Because of how exif works, we can't just save a timezone.
@C0ntroller
C0ntroller / rainbow.yaml
Last active February 13, 2025 20:21
ESPHome RGB-LED Rainbow effect
# Import this effect in your light module to use it
# You have to change the id in line 15 and/or set an id for your LED module
# The time-variable exist to make multiple ESPs start from 0 even if they ran the effect before so they are in sync
# You can delete it if you only have one LED Strip
- lambda:
name: Rainbow
update_interval: 3s # If you change this, also have to edit line 11 for correct time handling
lambda: |-
static int state = 0;
static uint32_t time = millis();