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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# --- |
NewerOlder