Skip to content

Instantly share code, notes, and snippets.

View au5ton's full-sized avatar
😶‍🌫️
Working on closed-source stuff

Austin Jackson au5ton

😶‍🌫️
Working on closed-source stuff
View GitHub Profile
@au5ton
au5ton / Remove videos from Youtube Watch Later playlist.md
Created April 3, 2023 03:05 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@au5ton
au5ton / index.html
Last active March 25, 2023 22:03
LitElement my-context-provider sample
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Vite + Lit + TS</title>
<script type="module" src="/src/index.ts"></script>
</head>
<body>
<my-context-provider>
<my-inner-element>AAA</my-inner-element>
@au5ton
au5ton / MEFormFiller.user.js
Created October 30, 2018 03:34
written by Fluff
// ==UserScript==
// @name Card Farmer lel
// @version 1
// @include https://mnevnt-prod1.pegacloud.io/*
// @grant none
// ==/UserScript==
checkFrame();
function checkFrame()
@au5ton
au5ton / README.md
Created August 28, 2018 20:56
Download all FLACs from Apollo 11 audio on Archive.org
@au5ton
au5ton / sample.js
Created August 4, 2018 05:59
javascript pass by value versus pass by reference
// Cannot replace with new references
let str = 'hello world'
function f(x) {x = x.substring(0,x.length-2)} // Removes last character
f(str)
// str => 'hello world'
function f(x) {x = 'new thing'}
f(str)
//str => 'hello world'
// Can modify object by original reference
#!/usr/bin/python3
def fibonacci(n):
if(n==0):
return 0
else if(n==1):
return 1
else:
return fibonacci(n-1)+fibonacci(n-2)
#!/usr/local/bin/python3
from random import randint
print('hello')
some_array = [1,9,4,2]
lll = [1,2,3,4]
# bogo sort
@au5ton
au5ton / voice.sh
Last active September 6, 2017 02:21
#!/bin/sh
# requires OS X
# prereq: brew install poppler
pdftotext -f $1 -l $2 LoneStarPolitics.pdf
say -f LoneStarPolitics.txt -o transcription
rm LoneStarPolitics.txt
open transcription.aiff
process.on('unhandledRejection', r => logger.error(r));
@au5ton
au5ton / other.ps1
Last active August 29, 2022 02:58
Sets the wallpaper of the current logged in user when ran to 2 different images based on a conditional
#
# Austin Jackson
# Script from:
# Intended for: MD Anderson
#
# Use: Sets the wallpaper of the current logged in user when ran to 2 different
# images, depending on if the C drive capacity is over a threshold (in bytes)
# Tested on Windows 10.
#
# Faults: Windows can be inconsistent about when to refresh the wallpaper if this