Skip to content

Instantly share code, notes, and snippets.

View frozenpandaman's full-sized avatar
🌧️

eli frozenpandaman

🌧️
View GitHub Profile
@frozenpandaman
frozenpandaman / widevine-decryption.md
Created December 26, 2023 14:47
download videos protected with widevine DRM
@frozenpandaman
frozenpandaman / s3s-use-splatnet3-in-browser.user.js
Created September 2, 2023 09:05
Userscript for enabling in-browser usage of SplatNet 3. For use with s3s: https://github.com/frozenpandaman/s3s
// ==UserScript==
// @name s3s Use SplatNet 3 in-browser
// @namespace https://github.com/frozenpandaman/s3s
// @version 0.1
// @description Allows you to load the SplatNet 3 homepage in your browser.
// @author eli fessler (frozenpandaman)
// @match https://api.lp1.av5ja.srv.nintendo.net/
// @match https://api.lp1.av5ja.srv.nintendo.net/?lang=*
// @icon https://splatoon.nintendo.com/favicons/apple-touch-icon.png
// @grant none
@frozenpandaman
frozenpandaman / statinkmassdel.py
Last active December 13, 2022 09:12
for mass DELETE-ing splatoon 3 battles/jobs from stat.ink
#!/usr/bin/env python
import requests, msgpack
API_KEY = '' # FILL IN YOUR STAT.INK API KEY
shas = [ # PUT YOUR BATTLE URLS OR URL HASHES TO DELETE HERE
]
resulttype = "battle" # change this to say "salmon" if you are deleting SR jobs
@frozenpandaman
frozenpandaman / aegisub m1 setup.md
Last active April 10, 2024 16:40
Installing a modern version of Aegisub on M1 Macs (Apple Silicon)
@frozenpandaman
frozenpandaman / locate.py
Created June 27, 2020 14:12
translate a list of IPs to a list of location coordinates
import geoip2.database
# https://dev.maxmind.com/geoip/geoip2/geolite2/
reader = geoip2.database.Reader('GeoLite2-City.mmdb')
locs = open("locs.txt").read().splitlines() # in - list of IPs, one per line
latlongs = [] # out
count = 1
for ip in locs:
@frozenpandaman
frozenpandaman / manga.sh
Last active January 8, 2020 13:01
export psds of manga pages to png (save as indexed png ->remove exif tags -> pngcrush if worth it)
#!/bin/bash
dir="_png"
mkdir -p $dir # make diretory
for filename in *.psd; do # for all .psd files, save as indexed color .png, no transparency
if [[ "$filename" == *"-c"* ]]; then # grayscale unless "-c" (i.e. -credits, -color) in filename
cs="RGB"
else
cs="LinearGray"
fi
convert "$filename"[0] -colorspace $cs -colors 256 -background white -alpha remove -alpha off PNG8:$dir/"${filename%%.*}".png
@frozenpandaman
frozenpandaman / travel-recs.md
Last active October 19, 2023 10:13
eli's travel recommendations

eli's travel recommendations

My recommendations for things to do – generally those that are interesting and/or delicious – in places I've lived or spent significant time. Enjoy!

Last updated October 18, 2023. Contact: @frozenpandaman

1. Japan

1.1. Tokyo

1.1.1. Food

@frozenpandaman
frozenpandaman / streamable_upload.py
Last active December 12, 2019 07:13
Upload all .mp4 files in a directory to Streamable
#!/usr/bin/env python
import os, requests, json
from io import BytesIO
STREAMABLE_USERNAME = ""
STREAMABLE_PASSWORD = ""
DIRECTORY = ""
def main():
#!/usr/bin/env python
import urllib.request, csv, datetime, pytz, prettytable, lxml
from bs4 import BeautifulSoup
def main():
statinkurl = "https://stat.ink/entire/users?_lang_=en-US"
page = urllib.request.urlopen(statinkurl).read()
bs = BeautifulSoup(page, "lxml")
table = bs.select_one("table.table-striped")
#!/usr/bin/env python
import urllib.request, itertools, datetime, os
from bs4 import BeautifulSoup
def main():
eps = ["S1",
"https://www.imdb.com/title/tt4593118/",
"https://www.imdb.com/title/tt4593122/",
"https://www.imdb.com/title/tt4593126/",