Skip to content

Instantly share code, notes, and snippets.

@klondikemarlen
klondikemarlen / README, Setting Up Better Context for GPT Agent via Global Git Hooks, 2025-02-19.md
Last active February 19, 2025 16:09
README, Setting Up Better Context for GPT Agent via Global Git Hooks, 2025-02-19.md

Setting Up Better Context for GPT Agent via Global Git Hooks

Follow these steps to configure a global Git hooks directory and set up a prepare-commit-msg hook that appends diffs to commit messages.

Step 1: Create a Global Hooks Directory

  1. Create a directory ~/.git/hooks to store your global hooks.
    mkdir -p ~/.git/hooks
@klondikemarlen
klondikemarlen / td-paste-block-remover.js
Last active November 7, 2024 15:44
Removes paste restrictions on TD's authentication page input fields only for paste actions.
// ==UserScript==
// @name TD Paste Block Remover
// @namespace http://tampermonkey.net/
// @version 2024-11-07
// @description Removes paste restrictions on TD's authentication page input fields only for paste actions.
// @author Marlen
// @match https://authentication.td.com/uap-ui/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=td.com
// @grant none
// @run-at document-body
@klondikemarlen
klondikemarlen / proof_user_cleanup_and_repermission.rb
Last active February 4, 2025 21:44
A handy script to walk the user through cleaning up and re-permissioning a user in Proof.
##
# proof_user_cleanup_and_repermission.rb
#
# A handy script to walk the user through cleaning up and re-permissioning a user in Proof.
#
# Ensure this script is run within the Rails environment.
#
# Usage:
# require 'open-uri'; eval(URI.open('https://gist.github.com/klondikemarlen/61cb36f4e3eb418eee5bf6195e5eb979/raw').read); UserCleanupAndRepermission.call
#