Skip to content

Instantly share code, notes, and snippets.

View dotcomboom's full-sized avatar
at university of minnesota

dcb dotcomboom

at university of minnesota
View GitHub Profile
dotcomboom / tumblr2opml.js
Last active July 31, 2023 04:08 — forked from andrew8088/tumblr2opml.js
You can run this script on and you'll get an OPML file for tumblogs on that page print out to the console, ready for you to copy+paste into a file and import into Google Reader. -- Edited, revised to work on current tumblr. tested with quiterss
var feeds ="div.yElCb a")),
i = 0, p, f, doc = "";
while (feeds[i]) {
f = feeds[i];
feeds[i++] = {
htmlUrl : f.href,
xmlUrl : f.href + 'rss',
title : f.innerText.replace('\n', ' ').split(' ')[0],
dotcomboom / Teverse Calculator 20201105.lua
Created January 11, 2023 21:02
A Teverse calculator app.
Really cool calculator app for Teverse in 100 lines or less by dotcomboom/dcb, donut steel
]] -- UI objects
local frame = teverse.construct("guiFrame",
{ -- Parent frame, contains all objects
parent = teverse.interface,
size = guiCoord(1, 0, 1, 0)
local topbar = teverse.construct("guiTextBox",
{ -- Definitely not ripped from the example
dotcomboom /
Last active October 17, 2022 01:16
WordPress Theme Screenshoter; This script was written to take screenshots of 1500+ legacy WordPress themes using a WAMP local host and Selenium. Very hacky!
from selenium import webdriver
from import WebDriverWait
import shutil
import time
import os
wp_home = ''
wp_themes_folder = 'C:\\wamp64\\www\\wordpress\\wp-content\\themes\\'
wp_active_theme = 'twentytwentytwo'
dotcomboom /
Last active July 24, 2022 19:29
Gopher directory mirroring with pituophis
import pituophis
import os
from time import sleep
menus_to_download = ['gopher://'] # put your starting menu url here
sleep_between_downloads_sec = 0.1
def download_menu(url):
req = pituophis.parse_url(url)
text = req.get().text()
dotcomboom /
Created February 12, 2022 23:28
Memorization wizard - takes docx file as input, outputs memorization-friendly versions
# This is a python script that reads an Office DOCX file,
# and writes a copy of the file that is changed in that
# every word that is not bolded or italicized is replaced
# with the first letter of the word.
# Imports.
from docx import Document
import re
import sys
import os
dotcomboom /
Created February 5, 2022 04:08
Batch mp3guessenc script, outputs a plot
# python script to check using mp3guessenc every mp3 file in a directory and guess the encoding
# it will get the output from mp3guessenc, and parse out the text after "Maybe this file is encoded by"
import os
import subprocess
import sys
import re
# make a fancy graph of the results
import matplotlib.pyplot as plt
import numpy as np
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from mpd import (MPDClient, CommandError)
from random import choice
from socket import error as SocketError
import sys
from sys import exit
import time
// ==UserScript==
// @name Neopets: Custom art/aliases
// @namespace
// @version 0.1
// @description Replace the art and name shown for pets on the beta home page
// @author metalynx
// @match
// @match
// @match
// @match
dotcomboom / main.cpp
Created June 13, 2021 20:10
Pomodoro timer
#include <sstream>
#include <iostream>
#include "windows.h."
using namespace std;
struct timer {
int minutes;
int seconds;
bool active;
string s;
dotcomboom / Neopets: Shop Stock Pricer.user.js
Last active July 26, 2023 05:33
Neopets: Shop Stock Pricer
// ==UserScript==
// @name Neopets: Shop Stock Pricer
// @namespace
// @version 0.2
// @description This script lets you scrape JellyNeo for prices on the shop stock page. Does not auto-submit or otherwise automate activities, though it does send a bunch of search requests to JN when run. Use at your own risk.
// @author metalynx
// @match*
// @match*
// @icon
// @require