Skip to content

Instantly share code, notes, and snippets.

View drifterz28's full-sized avatar

Chris Whitney drifterz28

View GitHub Profile
@drifterz28
drifterz28 / ytShortRemove.js
Created March 2, 2023 16:57
Remove youtube shorts from my subscription feed
// ==UserScript==
// @name Remove shorts from feed
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Removing shorts from feed because they suck
// @author https://github.com/drifterz28
// @match https://www.youtube.com/feed/subscriptions
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@drifterz28
drifterz28 / ender-3-end.gcode
Last active November 20, 2023 23:30
My ender 3 starting g-code
; Ender 3 Custom End G-code
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Adafruit_NeoPixel.h>
#include <time.h>
#include <ArduinoJson.h>
#define LED 2
#define LED_COUNT 22
#define APP_ID "ff6f5d189dfa1eba10cc3559a7eb097d"
#define ZIP "97701"
https://ci5.googleusercontent.com/proxy/a0IKwWO4m7yWZDYSHZv4B88AAUwoy5neOpfXl0NPKVTN6gSAX_MV5SkT71yDETNbBIw_8QLfLciFSZ1b92zRM8qGFyxzTYB6s3TiIQiPO0jmNl4cyPB2pQSbQxV7E6iMj0bOQzgvi501PJYbxvXX6mX4hy6bNWdq-Ohh3F-LSTcFxAZ_zHZTo7o65eA05sNqq7s_itVCZ52H804DFVpHXcF-_sarHnG0WLLt4wVeT32OD9MgkuAimpHadP_l=s0-d-e1-ft#https://mi.burton.com/p/rp/98c2674b488bc8d6.png?mi_u=5e63fbfc91d15c0ec70f0404&mi_ecmp=20100406&mi_date=04/23/2020+23:00+UTC&mi_fontColor=000000&mi_backgroundColor=f69f95
@drifterz28
drifterz28 / ender-3.gcode
Last active April 16, 2020 20:51
ender 3 start g code
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder
M280 P0 S160 ; BLTouch alarm release
G4 P100 ; delay for BLTouch
G28 ; Home all axes
G29 ;move Z to min endstops
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
const P_KEY_CODE = 80;
const handleKeyPress = e => {
if (e.shiftKey && e.keyCode === P_KEY_CODE) {
togglePrefs(!showConsolePrefs);
}
};
window.addEventListener('keydown', handleKeyPress);
return () => {
window.removeEventListener('keydown', handleKeyPress);
};
// ==UserScript==
// @name PR Copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://barnoneauction.hibid.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Team-Oregon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://app3.msi5.com/*
// @grant none
// ==/UserScript==
@drifterz28
drifterz28 / wpa_supplicant.conf
Created March 14, 2018 17:40
Headless pi setup
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="SSID"
psk="password"
key_mgmt=WPA-PSK
}