Skip to content

Instantly share code, notes, and snippets.

View jakebrinkmann's full-sized avatar

Jake Brinkmann jakebrinkmann

View GitHub Profile
@jakebrinkmann
jakebrinkmann / #🚀 GitHub Copilot: A Persona-Based Approach.md
Created November 4, 2025 14:18 — forked from kasuken/#🚀 GitHub Copilot: A Persona-Based Approach.md
GitHub Copilot: A Persona-Based Approach - All my chat modes

In this gist, you can find all the VS Code chat modes I am using in my projects for the Persona based approach technique I created.

You will find an article about on my dev.to blog (dev.to/kasuken)

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@jakebrinkmann
jakebrinkmann / README.md
Created August 28, 2024 19:53 — forked from vranystepan/README.md
CI/CD assume role

Simple AWS IAM role assume for CI/CD environments

Example

set AWS env. variables

export ASSUME_ROLE_ARN="arn:aws:iam::000000000000:role/role00001"
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
@jakebrinkmann
jakebrinkmann / Dockerfile
Created August 26, 2024 13:57 — forked from usr-ein/Dockerfile
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
# but I try to keep it updated (see history)
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
@jakebrinkmann
jakebrinkmann / logging_example.py
Created June 5, 2024 16:37 — forked from kdgregory/logging_example.py
Example of generating JSON logging output from Python
import json
import logging
import platform
import sys
import time
import traceback
class JSONFormatter:
"""A formatter for the standard logging module that converts a LogRecord into JSON
@jakebrinkmann
jakebrinkmann / sqla-guid-array.py
Last active November 3, 2020 17:40 — forked from mvantellingen/sqla-guid-array.py
SQLAlchemy INET Array
import datetime
import uuid
import psycopg2.extras
from sqlalchemy import Column, MetaData, Table
from sqlalchemy.types import Integer, DateTime, TypeDecorator
from sqlalchemy.dialects.postgresql import ARRAY, array
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.sql.expression import cast, literal, select
@jakebrinkmann
jakebrinkmann / immutable_json.py
Created January 13, 2020 19:47 — forked from je55ek/immutable_json.py
Function to create an immutable data structure and its associated marshmallow schema in one fell swoop
from collections import namedtuple
from marshmallow import Schema
from marshmallow.decorators import post_load
def class_and_schema(class_name, fields):
"""Create a class and its marshmallow schema.
Example::
@jakebrinkmann
jakebrinkmann / .gitattributes
Last active February 21, 2020 16:54 — forked from Lordnibbler/pull-request-template.md
Sample Pull Request Template (⚡VIEW RAW FOR HIDDEN COMMENTS⚡)
/CHANGELOG merge=union