Skip to content

Miscellaneous scripts I've written. Maybe they'll be useful to you! (But probably not)

License

Notifications You must be signed in to change notification settings

Blizihguh/scripts

Repository files navigation

Miscellaneous scripts that don't require their own repositories, but which might maybe be helpful to someone at some point. All scripts are provided as-is, with no guarantee of functionality, portability, maintainability, sanity, or decency.

AGAR WAD Dumper

A script to dump the contents of Abstraction Games Archive (AGAR) .wad files. I've only tested this on 428: Shibuya Scramble, but presumably will work for other Abstraction Games titles (Danganronpa, Hotline Miami 2, etc). There's an existing tool, but it doesn't seem to work for 428.

Anagraph Solver

A script to find anagraphs. If you don't know what those are, go binge Tom7's YouTube channel. He posted his code to SourceForge, but it seemed like it would be easier to write my own than to set up whatever environment I need to build his. Can search for a specific word length, or any word length.

Backtracker

Boilerplate/starter code for a generic backtracking algorithm in Python. The actual backtracking code and class structure is there, all you need to do is implement the state and a few functions for the puzzle class. Optionally supports finding multiple solutions and partial solutions.

Heardle in Python

A Python re-implementation of Heardle that uses your local music library instead of Spotify. I'm not going to make a webapp version of this for various reasons, but it's a fun time-waster.

JMusicBot Playlist Generator

A script to generate playlist files for John Grosh's JMusicBot. When run with no arguments, it outputs a playlist.txt file which contains absolute paths of all the audio files in the directory. The first argument is the directory to get music from; the second argument is the filename to output. Arguments are optional and positional (so you need to give a directory if you want to give a filename). Currently does not handle non-ASCII characters properly, at least on my machine.

Multipurpose File Ripper

A script to extract (uncompressed, unencrypted) files that are embedded in a file. Supports a bunch of multimedia filetypes, and is pretty easy to extend if you want to support more. The blessing and curse of this script is its simplicty; it doesn't do any fancy file parsing, it just looks for file signatures and then saves them. This means it's basically guaranteed to find anything that's there, as long as the files' headers are stored in plaintext. But this naive approach is likely to be slow on large files, and won't capture metadata like filenames. Also, there is a very small but nonzero chance that it might read garbage data as a file, if your input file happens to contain the magic numbers of a supported filetype in some place that isn't actually a file.

Various commandline arguments are supported; run with the help flag or look inside the script for more info about these. Some sample config .inis are provided, but these are not necessary to use.

Spelling Bee Solver

A brute force solver for the NYT Spelling Bee daily puzzle (or more specifically, the Freebee clone of Spelling Bee). Solve an individual board with python3 spelling-bee.py <board>, or solve all boards with python3 spelling-bee.py all. Boards are represented with their central letter as the first letter of the string (eg: ADFGHJK would have an A in the center and DFGHJK around). Fun fact: the highest-scoring board in Freebee is EAINRST, with a maximum of 8709 points; the lowest-scoring board is the unsuspecting XCINOPR, which has only one word, the pangram "princox," worth 14 points. Personally I was surprised that "prix" wasn't on the word list, though.

SSBU Ironman Graph Generator

A script to generate an HTML graph for a 1v1 Smash Ironman, with fancy tooltips and stuff. Uses Bokeh. Some effort has been made to make it easy to edit, but given the nature of webdev, I wouldn't be surprised if this just completely breaks at some point. Assumes you're doing a full-roster ironman in SSBU, but it should be fairly easy to convert it to a more sane format by just deleting characters from the list.

Windows IME Fix

Windows' IME (for converting QWERTY keyboard input to Japanese characters) is horrible. This AHK script makes it more palatable by replacing the messy, obnoxious, uncomfortable, generally-awful keybinds with two buttons: F1 to cycle between latin/hiragana/katakana, and F2 to cycle between half-width and full-width.

About

Miscellaneous scripts I've written. Maybe they'll be useful to you! (But probably not)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published