Skip to content

Instantly share code, notes, and snippets.

View nullstalgia's full-sized avatar
:shipit:

nullstalgia nullstalgia

:shipit:
View GitHub Profile
#include <avr/sleep.h>
#include <avr/wdt.h>
volatile bool wdtFired;
// watchdog interrupt
ISR (WDT_vect)
{
wdt_disable(); // disable watchdog
wdtFired = true;
#include <AppleMidi.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiUdp.h>
#include <SoftwareSerial.h>
#include <LEAmDNS.h>
#include <LEAmDNS_Priv.h>
#include <ESP8266mDNS.h>
#include <LEAmDNS_lwIPdefs.h>
@nullstalgia
nullstalgia / usbasploader-qmk-atmega328p.md
Created May 22, 2020 03:34
USBaspLoader and QMK on ATmega328P
/*
Project Nintendo Extension Controller Library
@author David Madison
@link github.com/dmadison/NintendoExtensionCtrl
@license LGPLv3 - Copyright (c) 2020 David Madison
This file is part of the Nintendo Extension Controller Library.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@nullstalgia
nullstalgia / cloud-sync-rules.conf.default
Created May 21, 2022 06:49
RetroDECK Upload/Download RClone scripts
# Exclude mac folders and files
- .Trashes/**
- .Spotlight-V100/**
- *.DS_Store*
# Excluding states, as those are done by another command
- savestates/**
- *.state*
+ README.txt
@nullstalgia
nullstalgia / conversion.py
Created August 6, 2022 20:29
QR Data Capacity Table
# Stolen from https://github.com/mnooner256/pyqrcode/blob/master/pyqrcode/tables.py
data_capacity = {
1: {
"L": {
0: 152,
1: 41,
2: 25,
4: 17,
8: 10,
},
@nullstalgia
nullstalgia / SlimeVR Delay.ahk
Created October 17, 2022 03:37
AutoHotKey script to delay SlimeVR reset bindings (from OVR Toolkit)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Reset
$^+!y::
SoundBeep
Sleep 3000
SoundBeep
@nullstalgia
nullstalgia / main.cpp
Created November 8, 2022 06:43
SlimeVR BNO Calibration Mess
#include <Arduino.h>
#include <Wire.h>
#include "ota.h"
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configuration Magic
#define TRACKER_ADDRESS 0x4A
#define AUX_ADDRESS 0x4B
#define TRACKER_INT 16
#define AUX_INT 13
@nullstalgia
nullstalgia / CapsLockShiftA.ahk
Created January 7, 2023 03:38
An AHK Script to replace Caps Lock with "A" unless pressing Shift+Caps. Works with OVR Toolkit.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SteamVRRunning()
{
Process, Exist, vrserver.exe
If ErrorLevel = 0
{