Skip to content

Instantly share code, notes, and snippets.

View Ultrawipf's full-sized avatar

Yannick Richter Ultrawipf

View GitHub Profile
@Ultrawipf
Ultrawipf / pisoshiftreg.ino
Created July 26, 2022 18:31
74HC165 PISO shift register example for Arduino
#define CSPIN 2
#define CLKPIN 3
#define DPIN 4
void setup() {
pinMode(CSPIN, OUTPUT);
pinMode(CLKPIN, OUTPUT);
pinMode(DPIN, INPUT);
Serial.begin(115200);
@Ultrawipf
Ultrawipf / sc2wheel.py
Last active January 27, 2023 10:00
Simucube and cube controls compatible bluetooth LE steering wheel to keyboard or vjoy using pyvjoy mapper
import asyncio
import platform
from time import time,sleep
from bleak import BleakClient,BleakScanner
VJOYMODE = True # Set true to use vjoy gamepad instead of keyboard
if VJOYMODE:
import pyvjoy
joy = pyvjoy.VJoyDevice(2)
@Ultrawipf
Ultrawipf / yt-shorts-redirect.js
Created March 29, 2022 08:12
Tampermonkey script to redirect all youtube shorts video links to normal video pages
// ==UserScript==
// @name Youtube shorts redirector
// @version 0.1
// @description Redirects all youtube shorts videos to normal video pages
// @author Ultrawipf
// @match https://*.youtube.com/shorts/*
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png
// @grant none
// @run-at document-start
// ==/UserScript==
@Ultrawipf
Ultrawipf / alarmhelper.yaml
Created March 9, 2022 21:10
Homeassistant blueprint for storing an alarm time in a date helper
blueprint:
name: Alarmhelper
description: Stores alarm time in helper
domain: automation
source_url: https://gist.github.com/Ultrawipf/39399ed7aea20e060e448d3649c12766
input:
alarm:
name: Alarm timestamp sensor
description: 'Sensor with timestamp of next alarm with device_class: timestamp'
selector: