Skip to content

Instantly share code, notes, and snippets.

View TheEmpty's full-sized avatar

Myles Best TheEmpty

  • USA
View GitHub Profile
// ==UserScript==
// @name Wanikani Play Vocabulary Audio on Failure
// @namespace http://tampermonkey.net/
// @version 1.1.0
// @description Automatically plays the pronunciation audio when you answer a Wanikani review incorrectly.
// @author Flint 40B Free
// @match *://www.wanikani.com/*
// @match *://preview.wanikani.com/*
// @require https://greasyfork.org/scripts/38582/wanikani-open-framework/code/WaniKani%20Open%20Framework.user.js
// @grant none
// ==UserScript==
// @name Costco PS5
// @namespace https://myles.empty.best/
// @version 0.1
// @description Bundle me
// @author Myles "Empty" Best
// @match https://www.costco.com/LogonForm
// @match https://www.costco.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Target auto-pickup order
// @namespace http://myles.empty.best/
// @version 0.1
// @description GOGOGOGOGOGOGOGO
// @author Myles "Empty" Best
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @match https://www.target.com/p/playstation-5-console/-/A-81114595
// @match https://www.target.com/co-cart
// @match https://www.target.com/co-review
@TheEmpty
TheEmpty / Amazon.js
Last active December 11, 2020 09:41
// ==UserScript==
// @name Amazon.com auto-place PS5 Order
// @namespace http://myles.empty.best
// @version 0.1
// @description more bags
// @author Myles "Empty" Best
// @match https://www.amazon.com/dp/B08FC5L3RG
// @match https://www.amazon.com/gp/buy/spc/handlers/display.html
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none
// ==UserScript==
// @name PS Direct to checkout
// @namespace https://myles.empty.best
// @version 0.1
// @description Get that fucking PS5
// @author Myles "Empty" Best
// @match https://my.account.sony.com/central/signin/*
// @match https://direct.playstation.com/en-us/consoles/console/playstation5-console.3005816
// @match https://direct.playstation.com/en-us/checkout*
// @require http://code.jquery.com/jquery-3.4.1.min.js
@TheEmpty
TheEmpty / Cleanup
Last active November 3, 2019 16:09
Octoprint Slack Integration
Suggested: add this to your crontab to run @daily. This deletes all snapshots last modified a week ago.
find /home/pi/oprint/lib/python2.7/site-packages/octoprint/static/img/SNAP_* -mtime +7 -exec rm -fr {} \;
$ crontab -e
@weekly find /home/pi/oprint/lib/python2.7/site-packages/octoprint/static/img/SNAP_* -mtime +7 -exec rm -fr {} \;
@TheEmpty
TheEmpty / keyboard-calculator.clj
Created January 25, 2017 04:50
Girlfriend's C++ Homework in Clojure
(ns keyboard-calculator.core (:gen-class))
(def number-of-regular-keys 89)
(def number-of-special-keys 14)
(defn get-width-height
[cin object]
(print (str "Width of " object ": "))
(flush)
(let [width (.nextDouble cin)]
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
Author: Twily
Description: Minimal flat styled tabs for Australis
Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
CSS Variables were introduced to Firefox in v29.0a1
Website: http://twily.info/
*/
@TheEmpty
TheEmpty / sonar2.py
Created February 2, 2015 17:08
Raspberry Pi and Parallax Ping))
import RPi.GPIO as GPIO
import time
# NOTE: don't use GPIO02 or GPIO03, they have
# internal pullup resistors that prevents results.
try:
# Setup
GPIO.setmode(GPIO.BOARD)
#include <stdio.h> // printf
#include <string.h> // strlen
#include <math.h> // pow
int intFromAscii(char ascii) {
switch(ascii) {
case '1': return 1;
case '2': return 2;
case '3': return 3;
case '4': return 4;