Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
This is a little script to download every song from every playlist
if your Google Play Music account. Songs are organized as follows:
<playlist>/<artist>/<album>/<song>.mp3
I Highly recomend putting this file in your %USER%\Music folder
before running.
import tweepy #https://github.com/tweepy/tweepy
import csv
import sys
from urllib.request import urlopen
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
@erijohnt
erijohnt / twitch-captions.md
Last active January 29, 2024 01:59
DIY Closed Captioning on Twitch Streams for Deaf/HoH Viewers

DIY closed captions on twitch streams for viewers

So, you're Deaf or hard of hearing and you want to watch a Twitch streamer without missing out on everything they're saying.

Ideally, the Twitch streamer you're watching will have a plugin like Twitch Captions or OBS captions plugin which both use Twitch.tv's CC feature so the captions can be toggled on/off for users who don't want them. Alternatively, they can even have closed captions

let bookmarkList = Array.from(document.querySelectorAll('.widget>.vbox'))
.map(e => e.shadowRoot)
.map(e => e && e.querySelector('.device-page-list'))
.find(e => e);
let bookmarks = Array.from(bookmarkList.querySelectorAll('.vbox'))
.map(e => `<a href="${e.querySelector('x-link').innerHTML}">${e.querySelector('.device-page-title').innerHTML}</a>`);
copy('<html><body>' + bookmarks.join('\n') + '</body></html>');