Skip to content

Instantly share code, notes, and snippets.

Avatar

Myles Best TheEmpty

  • USA
View GitHub Profile
View Costco.js
// ==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==
View Target.js
// ==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
View Amazon.js
// ==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
View Playstation Direct.js
// ==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 Nov 3, 2019
Octoprint Slack Integration
View Cleanup
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 Jan 25, 2017
Girlfriend's C++ Homework in Clojure
View keyboard-calculator.clj
(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)]
View modified-modified-powerline.css
@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 Feb 2, 2015
Raspberry Pi and Parallax Ping))
View sonar2.py
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)
View strToInt.c
#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;
View DimmingIdleControl.c
/*
Dimming Brake Lights, Idle Hazards, and External Control for LEDs via Arduino for R/C.
Copyright (c) 2015 Mohammad El-Abid
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is