Skip to content

Instantly share code, notes, and snippets.

@wilt00
wilt00 / filterYoutubeSubscriptions.user.js
Last active November 21, 2022 08:50
Add a section to the YouTube Subscriptions page sidebar, letting you filter videos by length, channel, and type
// ==UserScript==
// @name Filter Youtube Subscriptions
// @match https://www.youtube.com/*
// @grant none
// @version 1.1
// @author wilt00
// @description Add a section to the YouTube Subscriptions page sidebar, letting you filter videos by length, channel, and type
// @homepage https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c
// @updateURL https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c/raw/7f24c0945df306a1032d1635f9a77445063bc7fc/filterYoutubeSubscriptions.user.js
// @downloadURL https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c/raw/7f24c0945df306a1032d1635f9a77445063bc7fc/filterYoutubeSubscriptions.user.js
@wilt00
wilt00 / piano.html
Created August 28, 2022 23:26
A simple one-octave piano in <1kB of HTML/JS
<canvas id="p">
<script>
n = document.getElementById('p')
c = n.getContext('2d')
for(i=0;i<8;i++){c.strokeRect(i*37+2,1,37,148)}
bx=[24,67,134,176,218,286]
db=x=>c.fillRect(x,0,22,100)
bx.map(db)
diff --git a/posts/morse-codle/morse-codle.js b/posts/morse-codle/morse-codle.js
index b426847..78bc82e 100644
--- a/posts/morse-codle/morse-codle.js
+++ b/posts/morse-codle/morse-codle.js
@@ -150,8 +150,7 @@ function getDayOffset() {
const GAME_NUMBER = getDayOffset();
const STEP = 4;
-function share(event) {
- event.preventDefault();
@wilt00
wilt00 / !weatherping.md
Last active February 5, 2022 02:23
Weatherping

A simple service to check the weather every 15 minutes, and send me a nudge if it's nice out. Uses wttr.in for weather, discord webhooks for notifications, and systemd timers for scheduling.

@wilt00
wilt00 / discordgifs.ps1
Last active August 29, 2021 20:16
Find gifs in your Discord cache - WIP
# Tested with Powershell v7.1
# StackOverflow says the behavior of reading bytes from files changed sometime around v5, so
# this script might not work with the version of Powershell that comes with your computer
# https://stackoverflow.com/a/34559554
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()
New-Item -ItemType Directory -Path (Join-Path $parent $name)
}
@wilt00
wilt00 / blog.sh
Created August 8, 2021 01:20
FeedWrangler Feed Adder
#!/bin/bash
# Usage: blog.sh <url>
#
# Add a new feed to a FeedWrangler Smart Stream
# Url input doesn't need to be a link to an RSS document; FeedWrangler will
# figure out if there's a feed available on the page automatically
URL='https://feedwrangler.net/api/v2'
@wilt00
wilt00 / benstagram.html
Last active June 28, 2019 03:01
Benstagram
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<title>Page Title</title>
<style>
#instagram_feed {
margin: 0;
display: flex;
flex-direction: row;
// ==UserScript==
// @name LinkedIn Hide Invite
// @version 1
// @match *://www.linkedin.com/mynetwork/
// @grant none
// @run-at document-idle
// ==/UserScript==
(function () {
console.log("Started LinkedIn Hide Invite script");
#!/usr/bin/env python3
""" Docstring """
import argparse
import random
OPTIONS = ["?", "a", "A", "c", "C", "l", "L", "d", "D", "w", "W", "r", "R", "l", "L", "7", "~", ">"]
NAMES = ["Smith", "Jones", "Ivanovich", "Li", "Beiber", "NULL", "0", "Frankenstein", "Skeletor", "", "-1"]
def main():
#!/usr/bin/env bash
# Usage:
# ./yistep.sh [filename.yo]
# IMPORTANT!!
# In order to work properly, this script needs to be in the same directory
# as your yis executable
# ---