Skip to content

Instantly share code, notes, and snippets.

making my way downtown, walking fast

vgmoose vgmoose

making my way downtown, walking fast
View GitHub Profile
vgmoose /
Created Jul 30, 2021
Discord minesweeper grid generator with emojis and spoiler tags
import sys, random
emojis = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "regional_indicator_x"]
mine = -1
def gen_grid(size, mines):
grid = [[0]*size for _ in range(size)]
half = size // 2
import requests #3rd party module
from bs4 import BeautifulSoup
from datetime import datetime
from http.cookiejar import MozillaCookieJar
from amazoncaptcha import AmazonCaptcha
import traceback
import time
import os
import json
View data.txt
vgmoose /
Created Jan 30, 2021
Splits a given PDF file into separate PDFs made up of the odd and even pages
from PyPDF2 import PdfFileReader, PdfFileWriter
import sys
# Splits a given PDFfile into two odd and even page'd PDFs
# Also flips the even pages upside down and reverses their order
# This is to faciliate double-sided printing without having the printer support it
# If there's an odd number of pages, the last page is placed separately in a third PDF
# This helps make it easier to re-feed the paper without worrying about that remainder page
vgmoose /
Last active Oct 30, 2021
Mario 3D All Stars - Mario 64 Shindou Edition BLJ mod
vgmoose /
Created Aug 16, 2020
On Switchbrew, devkitPro, and Atmosphere

For about the past year, I have been banned on Github from commenting on any issues from the following Github organizations:

I do not know the makeup of these groups and where exactly the overlap lies. As of today, their "People" pages on their Github organizations look like this:

On the devkitPro org, Github explains the exact reason for my ban as follows:

vgmoose /
Last active Jun 1, 2019
(python3 script)
from urllib.request import urlopen
from urllib.parse import urlencode
import json
# get a client_id and client_secret from Github -> Settings -> Developer -> Register New Oauth
# then use those and the below curl command to get an access_token
# curl -X POST --data '{"note": "Updater", "client_id": "XXX", "client_secret": "XXX"}' -u USERNAME --header "X-GitHub-OTP: 2FACODE"
REPO = ""
vgmoose / .sh
Created Nov 27, 2018
BZLA LUA recursive file extractor (such as those extracted from BEA files in super mario party)
View .sh
# run within an extracted mini game directory (one of the mg* files)
# recursively snips header from .lua files (.lua.ex) then runs unluac on them to be readable (.lua.ex.txt)
# replace /path/to/unluac.jar to an absolute path where yours is (can be built from here )
find . -name "*.lua" -exec sh -c 'tail -c +21 "$1" > "$1.ex"; java -jar /path/to/unluac.jar "$1.ex" > "$1.ex.txt"' x {} \;
vgmoose /
Last active Nov 7, 2018
WARNING: will overwrite the default local Anki DB, unless PATH is changed
import anki
from import Collection
from anki.sync import Syncer, FullSyncer, RemoteServer, HttpSyncer
from pathlib import Path
# git clone
# cd anki
# pip3 install -r requirements.txt
# python3
vgmoose /
Last active Nov 5, 2018
# -*- coding: utf-8 -*-
import re
# regex for hiragana+katakana and a few more characters
blacklist = r'[ぁ-ゟ゠-ヿ「」。、 ?\n]'
# can be copied and pasted from the PDF including linebreaks between the two sets of """
text = u"""いる