Skip to content

Instantly share code, notes, and snippets.

@ProtoxiDe22
ProtoxiDe22 / dickbutt.py
Created February 15, 2022 22:25
the script use to draw a dickbutt on my new Revolut card (it somehow got approved regardless of the "no offensive material" policy)
import mouse
#body
# points = [[400.9566931754351,429.8411270159483],[400.5581525182724,428.94293463230133],[400.143625417063,428.02482321775517],[399.7360731302295,427.11726247153246],[399.32938103805293,426.2043925894518],[398.9215875165898,425.2806834694662],[398.5205555374641,424.36328360880725],[398.1238949173328,423.44631059479786],[397.73169952023886,422.52947501023186],[397.34224491349306,421.6081092651945],[396.9590319919342,420.6898416463065],[396.5785645839665,419.765513070589],[396.203315288797,418.84014256559317],[395.82908981661313,417.9020702831168],[395.4644751184469,416.97151804091993],[395.1051215028762,416.0360552930832],[394.753146524612,415.0993285800645],[394.41066773836496,414.1649844423216],[394.07411442242557,413.22045889593664],[393.7518168993201,412.286017719293],[393.4357819835562,411.3340557240974],[393.13037143230434,410.3705361223221],[392.8448401240015,409.41726092753584],[392.5756291030964,408.45180568701005],[392.33042768760583,407.4848576713447],[392.1128494262695,406.50325
@ProtoxiDe22
ProtoxiDe22 / main.py
Last active December 12, 2022 22:49
generate a Terraria timelapse with TerraMap from the history of .wld files
#This is how i would generate a timelapse, IF I HAD MY BACKUPS https://www.youtube.com/watch?v=_Tc0C3fhjt0
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
import os;
# directory path with .wld files
folder = 'E:\\User\\Documents\\My Games\\Terraria\\Worlds'
files = []
@ProtoxiDe22
ProtoxiDe22 / wiegand_keypad.yaml
Created March 9, 2023 18:22
EspHome Template to use a numeric wiegand keypad for arbitrary automations in homeassistant, in the automation, just use the binary sensor as trigger and use a template to check the text sensor against a text variable in HA
esphome:
name: wiegand-keypad
friendly_name: wiegand keypad
#platform and board can be changed to anything else you want
esp32:
board: esp32dev
framework:
type: arduino