Skip to content

Instantly share code, notes, and snippets.

@0xedward
0xedward / delete_all_workflows_for_repo.py
Created March 2, 2022 22:45
Janky python script to delete all GitHub Actions workflow runs for a specified repo
#!/usr/bin/env python3
# Before running the script make sure you install `gh`, on macOS you can run `brew install gh`
import subprocess
import json
import sys
import multiprocessing.dummy as mp
import argparse
@0xedward
0xedward / Enable Dark Mode Bookmarklet.md
Last active July 31, 2021 21:42
Enable Dark Mode on any site

Enable Dark Mode on any site

javascript:document.querySelectorAll('html').forEach((h)=>{h.style.filter="invert(1) hue-rotate(180deg)"});document.querySelectorAll('img').forEach((i)=>{i.style.filter="invert(1) hue-rotate(180deg)"});

Setup

  1. Copy the script
  2. Create a new bookmark with script as the URL of the bookmark and save the bookmark
  3. Click the bookmark you saved earlier to turn on dark mode for the site you are currently on
@0xedward
0xedward / YouTube - Play Channel Uploads in Chronological Order.md
Created July 31, 2021 21:13
YouTube - Play Channel Uploads in Chronological Order

YouTube Play Channel Uploads in Chronological Order

Ever want to start watching a channel's uploaded videos starting from the current video you are on in chronological order? Well then, this bookmarket is for you!

javascript:l=window.location.href;if(l.includes("youtube.com/watch?v=")){u=new URL(l);u.searchParams.set("list","ULcxqQ59vzyTk");window.open(u.toString(),"_self");};

Setup

  1. Copy the script
  2. Create a new bookmark with script as the URL of the bookmark and save the bookmark

Keybase proof

I hereby claim:

  • I am 0xedward on github.
  • I am 0xedward (https://keybase.io/0xedward) on keybase.
  • I have a public key ASD0k97UI1IpbeThJUM-j_5XaCuthd6zzjB2YeiHd2sBQgo

To claim this, I am signing this object: