Skip to content

Instantly share code, notes, and snippets.

Avatar
🌹
smelling the roses

dcb dotcomboom

🌹
smelling the roses
View GitHub Profile
@dotcomboom
dotcomboom / Teverse Calculator 20201105.lua
Created January 11, 2023 21:02
A Teverse calculator app.
View Teverse Calculator 20201105.lua
--[[
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!
View autotheme.py
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
View gophermirror.py
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
View memorize-me.py
# 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
View mp3guess.py
# 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
View mpd_schedule.py
#!/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
View Neopets- Custom art-aliases.user.js
// ==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
View main.cpp
#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 April 14, 2023 21:41
Neopets: Shop Stock Pricer
View Neopets: Shop Stock Pricer.user.js
// ==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
@dotcomboom
dotcomboom / aaaahhhhh.py
Created April 4, 2021 05:47
A script for extracting links from my daily notes
View aaaahhhhh.py
import marko
import os
import urllib.parse
from dateparser import parse
from bs4 import BeautifulSoup
from datetime import time
import requests
cupboard = "Daily"
epichtml = "<h1>HELLOOOOOO</h1>"