Skip to content

Instantly share code, notes, and snippets.

View adfinlay's full-sized avatar

Andrew Finlay adfinlay

View GitHub Profile
@adfinlay
adfinlay / ruleset.yaml
Created July 18, 2025 14:04
Ladder Ruleset
- domain: theathletic.com
injections:
- position: head
append: |
<script>
document.addEventListener("DOMContentLoaded", () => {
let overlays = document.querySelectorAll('div[id*="overlay"], div:empty:not([data-rjs])');
overlays.forEach(el => el.remove());
let slideup = document.querySelectorAll('div[id^=slideup-]');
@adfinlay
adfinlay / moviebarcode.py
Created November 30, 2016 15:50 — forked from ata4/moviebarcode.py
Python script to create movie barcodes with ffmpeg and imagemagick
#!/usr/bin/python
import sys, subprocess, getopt, os, json
def main(argv):
script_name = os.path.basename(argv[0])
try:
opts, args = getopt.getopt(argv[1:], "sw:h:q:", ["help", "solid-color", "width=", "height=", "samples="])
except getopt.GetoptError as err:
@adfinlay
adfinlay / usbreset.md
Created November 4, 2015 10:42
Reset a USB device from the command line

Save as usbreset.c

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>

#include <linux/usbdevice_fs.h>
@adfinlay
adfinlay / find_replace
Created May 11, 2014 09:49
Find / replace en masse
find . -type f -name '*.html.twig' | xargs perl -pi -e 's/find/replace/g'
@adfinlay
adfinlay / git_sensitive
Created May 11, 2014 09:46
Github - remove sensitive information
git filter-branch --index-filter 'git rm --cached --ignore-unmatch path/to/sensitive_file' HEAD