Skip to content

Instantly share code, notes, and snippets.

View dotcomboom's full-sized avatar

dcb dotcomboom

View GitHub Profile
@dotcomboom
dotcomboom / tumblr2opml.js
Last active July 31, 2023 04:08 — forked from andrew8088/tumblr2opml.js
You can run this script on tumblr.com/following 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
clear();
var feeds = Array.prototype.slice.call(document.querySelectorAll("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
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
dotcomboom / autotheme.py
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 selenium.webdriver.support.ui import WebDriverWait
import shutil
import time
import os
wp_home = 'http://127.0.0.1/wordpress/'
wp_themes_folder = 'C:\\wamp64\\www\\wordpress\\wp-content\\themes\\'
wp_active_theme = 'twentytwentytwo'
@dotcomboom
dotcomboom / gophermirror.py
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
dotcomboom / memorize-me.py
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
dotcomboom / mp3guess.py
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 -*-
# IMPORTS
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 http://lince.somnolescent.net
// @version 0.1
// @description Replace the art and name shown for pets on the beta home page
// @author metalynx
// @match http://www.neopets.com
// @match http://www.neopets.com/
// @match http://www.neopets.com//
// @match http://www.neopets.com/index.phtml
@dotcomboom
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
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 http://lince.somnolescent.net
// @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 http://www.neopets.com/market.phtml?order_by=id*
// @match http://www.neopets.com/market.phtml?type=your*
// @icon https://www.google.com/s2/favicons?domain=neopets.com
// @require https://cdn.jsdelivr.net/npm/axios@~0.21.1/dist/axios.min.js