Skip to content

Instantly share code, notes, and snippets.

View audiodude's full-sized avatar

Travis Briggs audiodude

View GitHub Profile
@audiodude
audiodude / twelve-bucks-conversation.md
Last active September 18, 2025 18:40
Claude prompts for creating twelve-bucks website

Claude Code Conversation: Creating twelve-bucks website

Initial Request

User: I'd like to create a simple static website, in a single index.html file under the directory "public/", that advertises the fact that for 12 bucks, you can have an entire sentence as a domain. The website will live at http://for12bucksyoucanhaveanentiresentenceasadomain.com/. It should be EXTREMELY minimalistic, but well designed and not boring. There should be a simple message as a very very large header, then a footer with links to the github page of the website (https://github.com/audiodude/twelve-bucks) and my name and website (Travis Briggs, https://travisbriggs.com). Confirm that you understand, ask me any relevant questions, and show me the TODO list before proceeding.

Claude: I understand you want to create a minimalistic static website for the domain http://for12bucksyoucanhaveanentiresentenceasadomain.com/ that advertises the concept of having an entire sentence as a domain for $12.

Before I proceed, I ha

The following is a transcript of an interactive story from the game Dada Quest. It has not been edited.

You find yourself in a dimly lit room. The only source of light is the faint glow coming from an old computer terminal. The air is thick with dust and the hum of ancient machinery.

What would you like to do?

look for a weapon

You search the dimly lit room thoroughly, moving aside discarded papers and rusted tools. Behind the terminal, you uncover a sturdy metal pipe—an improvised weapon. It feels heavy in your hands, and you're ready to defend yourself if needed.

@audiodude
audiodude / create_defs.py
Created October 11, 2024 03:00
Psuedo code for updating wikitionary
# csv is built in
import csv
# requests must be installed with `pip`. See also: virtual environment.
import requests
# #Use this instead of reader[:10] to get a random 10 instead of the first ten.
# import random
# random.sample(reader, 10)
# Double quoted strings will allow for multiple lines, but all of the whitespace will be preserved,
class Fruit:
def __init__(self, name):
self.name = name
apple = Fruit('apple')
apples = {
'apple': apple,
@audiodude
audiodude / output.txt
Created January 5, 2024 03:50
Increment random value from a dictionary
fruits={'apple': 0.49, 'banana': 0.69, 'peach': 1.29, 'pear': 1.49, 'watermelon': 2.99}
Incrementing banana by 1
fruits={'apple': 0.49, 'banana': 1.69, 'peach': 1.29, 'pear': 1.49, 'watermelon': 2.99}
@audiodude
audiodude / delete_posts.py
Last active November 29, 2024 08:15
Delete all of your Mastodon posts using your token
from datetime import datetime
import time
import requests
import tqdm
API_TOKEN = 'YOUR_API_TOKEN'
ACCOUNT_ID = 'YOUR_ACCOUNT_ID'
requested = False
{
"actor": "https://travisbriggs.com/digital.garden",
"type": "Create",
"published": "2023-11-14T00:00:00.000Z",
"id": "https://travisbriggs.com/garden/compost/publish",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"object": {
"attributedTo": "https://travisbriggs.com/digital.garden",
@audiodude
audiodude / post.js
Last active November 21, 2023 02:13
Manually POST to Mastodon inbox with HTTP signature in Node/JS
import * as fs from 'node:fs/promises';
import crypto from 'node:crypto';
import fetch from 'node-fetch';
const document = {
"actor": "https://travisbriggs.com/digital.garden",
"type": "Create",
"published": "2023-11-14T00:00:00.000Z",
"id": "https://travisbriggs.com/garden/compost/publish",
"to": [
import requests
from wp1.exceptions import Wp1RetryableSelectionError, Wp1FatalSelectionError
<SNIP>
try:
r = requests.post('https://query.wikidata.org/sparql',
headers={'User-Agent': WP1_USER_AGENT},
data={
@audiodude
audiodude / gem.bestalbumsintheuniverse.com.conf
Created November 19, 2022 01:51
Drop this in /etc/supervisor/conf.d/
[program:twins]
command=/home/tmoney/go/bin/twins --config /home/tmoney/.config/twins/config.yaml
user=tmoney