Skip to content

Instantly share code, notes, and snippets.

View TheDiscordian's full-sized avatar

TheDiscordian

  • Canada
View GitHub Profile
@TheDiscordian
TheDiscordian / merge_gamelists.py
Last active July 17, 2024 18:16
For EmulationStation. Used for merging sets or restoring hand-crafted edits after a new scrape.
import xml.etree.ElementTree as ET
import sys
def update_game_data(old_file, new_file, output_file):
old_tree = ET.parse(old_file)
old_root = old_tree.getroot()
new_tree = ET.parse(new_file)
new_root = new_tree.getroot()
@TheDiscordian
TheDiscordian / bs_word-filters.js
Last active May 9, 2023 22:19
Bluesky Word Filters
// ==UserScript==
// @name Bluesky Word Filters
// @namespace https://staging.bsky.app/
// @version 0.3
// @description remove junk posts from feeds (does't hide from profiles)
// @author Discordian
// @match https://staging.bsky.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// ==/UserScript==