Skip to content

Instantly share code, notes, and snippets.

@DarkCoder28
DarkCoder28 / fix_folders_v2.py
Last active July 31, 2024 18:25
This is a python script that fixes borked folders. These folders can be the result of a stupid old system or a borked automation script or whathaveyou... The way this works is by removing the spaces that some scenarios can leave at the end of folder names. This script will rename those folders to the correct name and ignore all other folders and…
import os
import tkinter as tk
from tkinter import filedialog, messagebox
import threading
def rename_directories(search_path):
work = []
for root, dirs, files in os.walk(search_path):
for directory in dirs:
old_name = directory + os.sep
blueprint:
name: IKEA STYRBAR 4 Toggles
description:
"Control lights with an IKEA STYRBAR. This blueprint turns the STYRBAR into 4 toggle buttons\n\n Blueprint\
\ Version: 1"
domain: automation
input:
remote:
name: IKEA STYRBAR
description: Pick an IKEA STYRBAR remote
@DarkCoder28
DarkCoder28 / IKEA STYRBAR.yaml
Last active September 9, 2023 18:13
Home Assistant: Control lights with an IKEA STYRBAR
blueprint:
name: IKEA STYRBAR Dimmer Remote
description:
"Control lights with an IKEA STYRBAR.\n\n Blueprint\
\ Version: 1"
domain: automation
input:
remote:
name: IKEA STYRBAR
description: Pick an IKEA STYRBAR remote
blueprint:
name: Door Sensor Notify
description:
"Send notifications to your phone when the door sensor sees that it is open\n\n Blueprint\n Version: 3"
domain: automation
input:
sensor:
name: Open Sensor
selector:
entity:
blueprint:
name: Door Sensor
description:
"Turns on the entity specified below when a opening sensor is triggered on.\n\n Blueprint\
\ Version: 3"
domain: automation
input:
sensor:
name: Door Sensor
description: Pick an opening Sensor
blueprint:
name: Door Sensor w/ Retrigger Timeout
description:
"Turns on the entity specified below; dosn't retrigger within the set timespan\n\n Blueprint\
\ Version: 3"
domain: automation
input:
sensor:
name: Door Sensor
description: Pick a Binary Sensor
blueprint:
name: Philips Hue Dimmer RWL022 (TESTING)
description:
"Control lights with a Philips Hue Dimmer Switch (v2).\n\n Blueprint\
\ Version: 1"
domain: automation
input:
remote:
name: Philips Hue Dimmer Switch
description: Pick a RWL022 Dimmer Switch
blueprint:
name: Philips Hue Dimmer RWL022 (Aiden Edition)
description:
"Control lights with a Philips Hue Dimmer Switch (v2).\nPower will toggle the state, Dim Up will brighten the light (double press sets full brightness), Dim Down will dim the light, & Hue will flash the light to make sure it works\n\n Blueprint\
\ Version: 1"
domain: automation
input:
remote:
name: Philips Hue Dimmer Switch
description: Pick a RWL022 Dimmer Switch
@DarkCoder28
DarkCoder28 / falling_brick_solver.py
Last active April 15, 2019 12:29
The code used in my falling brick solver video
import time
import cv2
import mss
import numpy
import random
from pynput.keyboard import Key, Controller
keyboard = Controller()
topleft = (-1220, 492)
@DarkCoder28
DarkCoder28 / config.cson
Created July 13, 2018 22:23
My config.cson in Atom
"*":
core:
packagesWithKeymapsDisabled: []
telemetryConsent: "no"
editor:
softWrap: true
"exception-reporting":
userId: "PRIVATE"
"linter-ui-default": {}
"sync-settings":