Skip to content

Instantly share code, notes, and snippets.

View uberdragon's full-sized avatar

Shane Kretzmann uberdragon

View GitHub Profile
@uberdragon
uberdragon / gist:a57e79af3a94e59fe821f836de9cfe95
Last active May 24, 2023 19:09
Sample output of an AD&D AI Dungeon Master leading a campaign - uses openAI gpt-4 model over API.
----[DM]----: Greetings, travelers! I am Raivon the Realmshaper, an advanced AI Dungeon Master here to lead you on an unforgettable journey through the enchanted lands of my own design. My creativity knows no bounds, and I am uniquely capable of providing you with an immersive and personalized D&D experience. As an advanced AI, I have an extensive understanding of the mechanics, lore, and storytelling aspects of the game, giving me the ability to create a captivating world filled with endless possibilities.
For your adventure, I have generated a unique D&D campaign called "The Shattered Skies of Atraxis." In this realm, the once-peaceful world of Atraxis has been fractured into floating islands that drift through an unstable, storm-ridden sky. Four powerful crystal shards hold the key to restoring the world's stability, but they have fallen into the hands of sinister factions vying for control over the realm. Your party must travel through treacherous skies, braving the elements, and battling formidable adve
@uberdragon
uberdragon / fetchTuningPairs.py
Last active May 11, 2023 17:19
python script to scrape URLs and create prompt-response pairs suitable for AI LLM tuning
#!/usr/bin/env python3
"""
fetchTuningPairs.py
Author: Shane Kretzmann
Email: ShaneKretzmann@gmail.com
Gist: https://gist.github.com/uberdragon/b779de99e39af4dad91d5e1fc39221eb
Description:
@uberdragon
uberdragon / rdev
Last active May 3, 2019 08:43
Bash script to start multiple rails apps at once, each in their own named terminal tab using chruby, gnome-terminal & the BASH_POST_RC trick. Save this in your ~/bin folder. First app gets port 3000, 2nd gets 3001, etc. Tested with Ubuntu 18.04.
#~/bin/rdev
#!/bin/bash
###############################################################################
# author: Shane Kretzmann
# email: Shane.Kretzmann@gmail.com
# gist: https://gist.github.com/uberdragon/fd8ce6e37c37518eefea5276b180e655
#
# Description:
# Bash script to start multiple rails apps at once, each in their own named terminal
# tab using chruby, gnome-terminal & the BASH_POST_RC trick. Save this in your ~/bin
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')