Skip to content

Instantly share code, notes, and snippets.

View transkatgirl's full-sized avatar
💭
I may be slow to respond.

Kat transkatgirl

💭
I may be slow to respond.
View GitHub Profile

Controlled Insanity - Relevant Resources

as i work on completing the main Controlled Insanity document, i will maintain a list of relevant concepts that will be brought up in the document.

this document is not "complete"; it should be viewed as an early preview for topics that will likely be covered in the actual Controlled Insantity document (which will be released when it's ready).

why do this?

@transkatgirl
transkatgirl / export_youtube_subs.js
Last active May 3, 2022 21:42
Export YouTube subscriptions
// How to use this:
// 1. Go to https://www.youtube.com/feed/channels
// 2. Scroll down to the bottom to load in complete channel list
// 3. Open the browser console and paste this snippet:
let channels = $$("#main-link.channel-link");
let channel_text = "";
for (let i = 0; i < channels.length; i += 1) {
if (channels[i].href != undefined) {
channel_text += channels[i].parentElement.parentElement.parentElement.getElementsByTagName("yt-formatted-string")[1].innerText + " - " + channels[i].href + "\n";
}
@transkatgirl
transkatgirl / encodetwitter.sh
Last active October 29, 2022 11:33
Encode a video for uploading to Twitter using FFMPEG and FDKAAC
#!/bin/bash
# https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/media-best-practices
# - h.264 high profile
# - 60fps or less
# - aac-lc, he-aac not supported
# - 16:9 recommended
# - 512mb maximum
# - shorter than 140s
# - 1:1 pixel aspect ratio
# - yuv 4:2:0