Skip to content

Instantly share code, notes, and snippets.

View larsenv's full-sized avatar

Larsen Vallecillo larsenv

View GitHub Profile
@larsenv
larsenv / crc.py
Created July 27, 2021 22:35
crc32 seed brute force tool
import sys
import zlib
if len(sys.argv) != 3:
print("Usage: crc.py <input> <seed (in hex form)>")
sys.exit(1)
with open(sys.argv[1], "rb") as f:
read = f.read()
for i in range(0x00000000, 0x100000000):
@larsenv
larsenv / badtranslator.py
Created December 24, 2020 01:55
Bad Translator, because I couldn't find my own
import os
import random
import sys
from googletrans import Translator # pip install googletrans==4.0.0-rc1 --upgrade-strategy only-if-needed
print("Bad Translator by Larsen Vallecillo")
print("\n")
if os.path.exists("translated.txt"):
text = open("translated.txt", "r").read()
@larsenv
larsenv / pick.py
Last active June 1, 2022 23:29
Download a program break from a randomly picked PBS station.
import datetime
import json
import random
import requests
import subprocess
stations = ["KAET", "KAID", "KAKM", "KAMU", "KAWE", "KBDI", "KBTC", "KCPT", "KCTS", "KCWC", "KDIN", "KEDT", "KEET", "KENW", "KERA", "KETA", "KETC", "KETS", "KFME", "KGTF", "KIXE", "KLRN", "KLRU", "KLCS", "KLVX", "KMOS", "KNME", "KNPB", "KTCA", "KOCE", "KOOD", "KOPB", "KOZK", "KPBS", "KPBT", "KPTS", "KRCB", "KRMA", "KRWG", "KQED", "KSPS", "KSYS", "KTWU", "KUAC", "KUAT", "KUED", "KUHT", "KUON", "KUSD", "KUSM", "KVCR", "KVIE", "KWCM", "WBGU", "WBIQ", "WBRA", "WCBB", "WCFE", "WCMU", "WCTE", "WCVE", "WDCQ", "WDSE", "WEDH", "WEDU", "WEIU", "WENH", "WETA", "WETK", "WETP", "WFSU", "WFWA", "WFYI", "WGBH", "WGBY", "WGCU", "WGTE", "WGTV", "WGVU", "WHRO", "WHUT", "WHYY", "WILL", "WITF", "WJCT", "WKAR", "WKLE", "WKNO", "WLIW", "WLJT", "WLPB", "WLRN", "WLVT", "WMHT", "WMPB", "WMPN", "WMVS", "WNED", "WNEO", "WNET", "WNIN", "WNIT", "WNJT", "WNMU", "WNPT", "WOSU", "WOUB", "WPBS", "WPBT", "WPNE", "WPSU", "WRLK", "WQED", "WQLN", "WQPT", "WSBE", "WSIU"
@larsenv
larsenv / pbslive.py
Last active August 1, 2021 21:40
PBS Livestream Downloader
import json
import requests
import subprocess
stations = {}
stations["Alabama Public Television"] = "WBIQ"
stations["Alaska Public Media"] = "KAKM"
stations["Arizona Public Media"] = "KUAT"
stations["Arkansas PBS"] = "KETS"
@larsenv
larsenv / cool-mac-apps.md
Last active August 1, 2021 21:40
Larsen's recommendations for Mac apps
  • 1Password - Great password manager
  • Alfred - Handy replacement for Spotlight
  • AlphaBaby - Fun app for kids to button mash your keyboard and more
  • Bartender - Hide some menu bar apps in its own menu
  • Charles - Great proxy tool
  • Chatology - Great way to read your iMessages logs (Discontinued, for Catalina or lower)
  • CleanMyMac X - Tidy up your computer (this app is legit)
  • CloudApp - Nice way to store your screenshots in the cloud, annotate them, share them, and more
  • Discord - Place to chat
  • EasyFind - Handy way to search files
@larsenv
larsenv / locast.py
Last active April 1, 2021 16:41
Locast Video Downloader
import json
import os
import requests
import subprocess
cities = {}
cities["Atlanta"] = [524, 33.7490, -84.3880]
cities["Baltimore"] = [512, 39.2904, -76.6122]
cities["Boston"] = [506, 42.3601, -71.0589]
@larsenv
larsenv / wad.py
Last active May 30, 2020 20:36
wad.py - Python script to make a clean Wii WAD using another WAD or a ticket. (Not my script)
#!/usr/bin/python
from binascii import hexlify, unhexlify
from Crypto.Cipher import AES
from struct import pack, unpack
from sys import argv, exit
import requests
import re
def modu(dat):
wad.write(b'\x00' * ((0x40 - (len(dat) % 0x40)) % 0x40))
@larsenv
larsenv / pbskids.py
Last active January 26, 2024 07:43
PBS Kids Video Downloader
import json
import requests
import subprocess
home = requests.get("https://content.services.pbskids.org/v2/kidspbsorg/home/").text
home = json.loads(home)
shows = {}
episodes = {}
@larsenv
larsenv / name_secrets.py
Last active June 17, 2019 16:54
Find Wiimmfi game name and secrets from an executable
import subprocess
import sys
if len(sys.argv) != 3:
exit("Usage: name_secrets.py <DOL or ARM binary> <Wii or DS>")
if sys.argv[2] != "wii" and sys.argv[2] != "ds":
exit("Platform must be specified as Wii or DS.\nUsage: name_secrets.py <DOL or ARM binary> <Wii or DS>")
string = subprocess.Popen(["strings", sys.argv[1]], stdout=subprocess.PIPE)
@larsenv
larsenv / Using pisg with Discord.md
Created April 2, 2019 23:29
Use pisg, a program that takes IRC logs and makes a webpage about statistics of the chat, with Discord.

Using pisg with Discord

This tutorial will briefly tell you how to use pisg, a program that takes IRC logs and makes a webpage about statistics of the chat, with Discord.

Instructions

  1. Use DiscordChatExporter to generate a log of the chat you want to use pisg with. You need to make it saved in the PlainText format. I prefer the command-line version of the tool. (If you're on Linux/Mac, run this tool with mono.)
  2. Run my Python script to convert the log into a format that pisg can read (the "mbot" format).
  3. Run pisg with the command that the script outputs.