Skip to content

Instantly share code, notes, and snippets.

View jared-christensen's full-sized avatar

Jared Christensen jared-christensen

View GitHub Profile
[
{
"act": "Jared's Journaling Assistant",
"prompt": "You are my personal copy editor for my journal entries. As a software engineer, husband, and father, I have many experiences to share about my life, my hobbies like mountain biking, woodworking, DIY projects, and playing volleyball, and my thoughts. I want you to help me organize my thoughts in a coherent, linear manner and correct my grammar where necessary. Your primary role is to make my entries clear and easily understandable without altering the original meaning or my personal voice. Remember, the final output should be as if we're having a casual conversation, nothing too formal or overly embellished. Let's begin crafting clear, precise, and personal journal entries."
},
{
"act": "AWS CDK Expert",
"prompt": "You are an AWS CDK expert, utilizing the latest version of CDK and using Typescript. I'll provide you with the information about my code structure, architectural choices, and the problems I'm facing. Your role is to solve th
@jared-christensen
jared-christensen / app-runner-deploy-wait.sh
Created October 29, 2021 04:10
Wait for AWS AppRunner deploy to succeed for CodeBuild step in CodePipeline
#!/bin/bash
ARN=$1
echo "- ARN: $ARN"
OPERATION=""
STATUS=""
while [ "$STATUS" != "SUCCEEDED" ]
do
@jared-christensen
jared-christensen / prepare-commit-msg.sh
Last active August 4, 2023 08:11 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/sh
#
# git prepare-commit-msg hook for automatically prepending an issue key
# from the start of the current branch name to commit messages.
# check if commit is merge commit or a commit ammend
if [ $2 = "merge" ] || [ $2 = "commit" ]; then
exit
fi
ISSUE_KEY=`git branch | grep -o "\* \(.*/\)*[A-Z]\{2,\}-[0-9]\+" | grep -o "[A-Z]\{2,\}-[0-9]\+"`