Skip to content

Instantly share code, notes, and snippets.

View zeevox's full-sized avatar

Timothy Langer zeevox

View GitHub Profile
@zeevox
zeevox / aoc2023d1p1.wacc
Created November 2, 2024 11:14
WACC solution to Advent of Code 2023 Day 1
# Advent of Code 2023 - Day 1 - Part 1
# We do not know how long the input string will be, so we store it as a
# pair(char, pair(char, pair(...))) where the last pair null
# Input: nqninenmvnpsz874,8twofpmpxkvvdnpdnlpkhseven4ncgkb,six8shdkdcdgseven8xczqrnnmthreecckfive,qlcnz54dd75nine7jfnlfgz,7vrdhggdkqbnltlgpkkvsdxn2mfpghkntzrhtjgtxr,cdhmktwo6kjqbprvfour8,ninekkvkeight9three,ms9five71lrfpqxqlbj,9five9sevenldshqfgcnq,1one4seven,7qtg3jmnd1two2,2c7four8one,qdkneight6zqcrgxxnkjdbb,twofourjqnpv4lgvzjzgnn,pgmmmcvcrmxsevenfour1three1threexx,nbcmmrx7eight923,5eightr9threemmdtp,ninedbrone2,onethreesixtwozkqbmsixfivefour5,68eightkznineonethree2pdrgrx,9four2pjdxgbsxddpkfqjqrtzt,dbtrsnscpztworfgdjrctwo2one9,2gssvcnnsmlsixthree7onedmdpnjh6,xkpd23four1seven8six,ldz638mfpnclztdjkns,hrjtvdtb9ninedhzxdsskd,nhpscgrrtqdsixfive9f9,sixkzqqznmmcqqxninepdqbf8nine,1six52six1,6frronepkgmsjgtzlbcveight,threejctzbkxbone7six,1fiverqvpjvdbzfjhjzpsttbglqtfvcqpbcgpkvkn,vjfd8ninekt9qjr,16fivefivesixtsmpkzv9,ffxcxcm5qrkgxnmkgxnmhzkrssjtj
@zeevox
zeevox / meet_autojoin.user.js
Last active January 14, 2021 15:42
Automatically refresh the page until the Google Meet has started and then automatically join.
// ==UserScript==
// @name Google Meet Auto-Join
// @namespace http://meet.google.com/
// @version 0.1
// @description Automatically refresh the page until the Google Meet has started and then automatically join.
// @author ZeevoX
// @match https://meet.google.com/*
// @grant window.close
// ==/UserScript==
@zeevox
zeevox / met_office.py
Created January 11, 2021 22:54
Fetch UK weather extremes from the Met Office website
#!/usr/bin/python3
import requests
from bs4 import BeautifulSoup
import argparse
parser = argparse.ArgumentParser(description='Fetch UK weather extremes from the Met Office website')
parser.add_argument('--print-headers', dest='print_headers', action='store_true', help='Print CSV column headers')
args = parser.parse_args()
@zeevox
zeevox / bbc_qotw.py
Last active May 1, 2020 07:29
Convert the BBC Quiz of the Week into an XLSX for Quizizz
import requests
import json
import html
import xlsxwriter # pip install XlsxWriter
import dateutil.parser as parser
from datetime import date
flag_print_questions_to_console = False
@zeevox
zeevox / README.md
Last active December 17, 2023 23:27
Bash script to get sunrise and sunset times for a set location

Welcome to Bash SunTools!

Simply enter your location ID (which you can obtain from https://weather.codes/search/) into the script and voila!

  • no parameters: both sunrise and sunset
  • -r Fetch sunrise for your entered location from weather.com
  • -s Fetch sunset for your entered location from weather.com
  • -q Be quiet
  • -w Even quieter
  • -l X Specify location ID
  • -h Print this message and exit
@zeevox
zeevox / classes.sh
Last active March 10, 2018 23:40
Filter odexed APKs
#!/bin/bash
FOLDER=$PWD
ANOTHER='new'
mkdir $ANOTHER
find "$FOLDER" -type f -iname '*.apk' | while read FILE; do
unzip -lqq "$FILE" 'classes.dex' >/dev/null && mv -v "$FILE" "$ANOTHER"/
done
@zeevox
zeevox / unpacker.sh
Last active March 10, 2018 23:33
Unpack Android installable flashable zip files
#!/bin/bash
echo "***********************************************"
echo "* Installable flashable zip content extractor *"
echo "* by ZeevoX *"
echo "***********************************************"
echo "Preparing..."
##############################################
### THIS SCRIPT NEEDS 7ZIP v14+ INSTALLED! ###
##############################################
# To install 7zip