Skip to content

Instantly share code, notes, and snippets.

View whoabuddy's full-sized avatar

Jason Schrader whoabuddy

View GitHub Profile
@whoabuddy
whoabuddy / keybase.md
Created February 16, 2021 13:12
keybase proof

Keybase proof

I hereby claim:

  • I am whoabuddy on github.
  • I am whoabuddy (https://keybase.io/whoabuddy) on keybase.
  • I have a public key ASAElxGUq2b-WAuBna5qVb_viZJCLh9fIJ-jNnu4sPCt1Ao

To claim this, I am signing this object:

@whoabuddy
whoabuddy / ai_powered_git_commits.sh
Last active July 19, 2023 21:18
ai-commit-messages
# OpenAI API key
export OPENAI_API_KEY="your-api-key"
# AI commit messages!
gitai() {
# Check if the current directory is a git repository
if ! git status > /dev/null 2>&1; then
echo "Not a git repository"
return
fi
@whoabuddy
whoabuddy / .bash_aliases
Last active March 20, 2024 16:27
Bash Aliases
# run this after a command for audio output
# e.g. echo "Hello!" && alldone
alias alldone='spd-say -t female3 "process complete"'
# upgrade packages in requirements.txt in the current directory
alias pipupgrade='cat requirements.txt | cut -f1 -d= | xargs pip install -U'
# run a git command against all directories in the current directory
# e.g. git_af status
# e.g. git_af pull
@whoabuddy
whoabuddy / prompt-templates.md
Created March 29, 2024 14:49
prompt-templates

Prompt Engineering

The software testing example comes from Matt Shumer, with the prompt expanded below so it's easier to read/modify.

With more powerful and longer context LLMs the key is providing clear instructions. I like how this format ties into how we work with agents (passing inputs, prompt template variables), and plan to keep any useful templates here for easy access.

Feel free to modify/share!

Software Testing Example