Skip to content

Instantly share code, notes, and snippets.

@Orangestar12
Orangestar12 / userscript.js
Created January 14, 2024 03:54
Accessible TVTropes Title Text
// ==UserScript==
// @name Accessible Title Text - tvtropes.org
// @namespace Orangestar Scripts
// @match https://tvtropes.org/pmwiki/pmwiki.php/*
// @grant none
// @version 1.0
// @author Orangestar
// @description 10/17/2023, 5:37:03 PM
// ==/UserScript==
@Orangestar12
Orangestar12 / splitter.py
Created August 5, 2023 06:53
Split audio tracks out of a video file with multiple audio tracks. Intended for use when editing videos with Blender.
import subprocess
import sys
import json
if len(sys.argv) == 1: # no drag and drop
print('This script needs at least 1 additional argument. All arguments must be a list of files to split.')
exit()
for video in sys.argv:
if video == sys.argv[0]: continue # first argv is always the script itself

Hi what's up I posted a screenshot from one of my friends onto Twitter to ask a question and now everyone wants these missing cuties.

If you showed up here not from that Twitter post, here's a link to an artist who drew most of these famous cutie emojis. If it's not here it's probably there! https://twitter.com/mothcharm/status/1587926501193818112

EDIT: The creator of these cuties seems to be @SucculentBud! Thanks to @nikonikoniikola for that one.

These are the best quality I have these in.

:cutieKill:

@Orangestar12
Orangestar12 / ffmpeg.md
Last active February 13, 2024 08:09
quick ffmpeg cheat sheet

If this is too much for you, check out ffmpeg.lav.io

These are a few quick easy ffmpeg command lines that can be used to make oft-used video formats. I use them a lot so I wrote them down in a txt file but I converted it to markdown to upload here and access on all my pcs.

Feel free to use 'em. I've gathered them through superuser posts, wiki trawls, and personal experience.


General notes

function SHOUTIFIER(nodelist) {
if ('childNodes' in nodelist && nodelist.childNodes.length != 0) {
for (x of nodelist.childNodes) {
SHOUTIFIER(x);
}
}
else {
if ( nodelist.textContent == '') { return; }
nodelist.textContent = nodelist.textContent.replace(/[a-zA-Z0-9]/ig, 'A');
}
@Orangestar12
Orangestar12 / irv.py
Last active February 21, 2016 00:41
It's relatively slow but it works.
# -*- coding: utf-8 -*-
import csv
Filename = input('CSV Filename:')
with open(Filename, newline='') as csvdata:
csvFile = csv.reader(csvdata)
csvList = []
for row in csvFile:
csvList.append(row)
#!/usr/bin/env python3
import struct
import re
class Wad(object):
"""Encapsulates the data found inside a WAD file"""
def __init__(self, wadFile):
"""Each WAD files contains definitions for global attributes as well as map level attributes"""