Skip to content

Instantly share code, notes, and snippets.

View dwgill's full-sized avatar

Daniel Gill dwgill

View GitHub Profile

Context: In this interaction with ChatGPT, I knew there was a critical bit of information (detailed below, in the prompt) that I needed to deliver to my players but (for various reasons relating to how the prior session had played out) I was no longer sure how to deliver that information. It was pretty critical for their understanding of the rest of the adventure, so I couldn't just hope that an opportunity would happen to turn up during the next session. I needed to have a fallback, just in case. That's a pretty hyper-specific thing to brainstorm, but it's an area where ChatGPT really shines.

Prompt:

Act as if you are an artistic, brilliant, creative writer. I want you to help me with brainstorming ideas as I prepare a story for a Dungeons & Dragons game that is set in a fantasy-renaissance inspired world and which prominently features themes of geopolitical espionage between world powers, investigating occult mysteries, joining secret societies, fighting fantasy monsters, encountering eldritch

Prompt:

Act as if you are an artistic, brilliant, creative writer. I want you to help me with brainstorming ideas as I prepare a story for a Dungeons & Dragons game that is set in a fantasy-renaissance inspired world and which prominently features themes of geopolitical espionage between world powers, investigating occult mysteries, joining secret societies, fighting fantasy monsters, encountering eldritch horrors, devising elaborate financial schemes, politicking with senators, mingling with privileged nobles, and capturing dangerous magic items.

The story takes place in the city of Arcstead, which is located between two major world powers: the Crescent Kingdom to the north, and the Southern League to the south. The Crescent Kingdom is a theocratic-monarchy ruled by a goddess-emperor. The Southern League is a confederation of small kingdoms which have allied together against the Crescent Kingdom. Arcstead is an independent city caught in a geopolitical tug of war between the Southern League and

baseurl = "http://blog.dwgill.com"
title = "Terminals, Tea, RPGs"
languageCode = "en-us"
theme = "hello-friend-ng"
paginate = 10
[params]
dateform = "Jan 2, 2006"
dateformShort = "Jan 2"
dateformNum = "2006-01-02"
@dwgill
dwgill / matt_colville_att_gen.py
Last active February 5, 2018 00:59
Automatically roll out a D&D (5e) attribute layout using a method described by Matthew Colville
#!/usr/bin/env python
"""
Copyright 2017 Daniel Gill
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
@dwgill
dwgill / mpvctl
Last active January 25, 2023 02:00
A small script for controlling mpv via the JSON IPC. Intended to resemble playerctl.
#!/usr/bin/env bash
# This script requires:
# - that the directory $HOME/.mpv exist
# - that the program socat be installed
# - that you start mpv with the unix socket feature pointing at that directory
# I recommend an alias in your .bashrc or equivalent file:
# alias mpv="mpv --input-unix-socket=$HOME/.mpv/socket"
socket="$HOME/.mpv/socket"
@dwgill
dwgill / gutenberg_regex
Created September 28, 2013 00:10
This is an attempt at a regular expression that will hopefully match the headers and footers that are included at the beginning of txt formatted ebooks hosted on Project Gutenberg (http://www.gutenberg.org/). The intent is that any expressions matching this regex might be safely replaced with an empty string before computationally processing the…
((\b(Project Gutenberg's)|(The Project Gutenberg EBook))[\s\S]+?\*{3}[\s\S]+?\*{3}(\s+?[pP]roduced by.+))|(([/bEe][nD][dD] of.+?[Pp]roject [Gg]utenberg[\s\S]+?)?\*{3}\s[eE][nN][dD].+?\*{3}[\s\S]*)