Skip to content

Instantly share code, notes, and snippets.

View larsenv's full-sized avatar

Larsen Vallecillo larsenv

View GitHub Profile
@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 / 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 / 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 / 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 / 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):