Skip to content

Instantly share code, notes, and snippets.

@klondikemarlen
klondikemarlen / fix-copy-button-on-vs-code-marketplace-for-firefox.js
Last active March 19, 2025 19:01
Fix Copy Button on VS Code Marketplace for Firefox
// ==UserScript==
// @name Fix Copy Button on VS Code Marketplace
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Fixes the "Copy" button on the VS Code Marketplace for Firefox by ensuring clipboard functionality works and adds a visual notification.
// @author Marlen
// @match https://marketplace.visualstudio.com/items*
// @icon https://www.google.com/s2/favicons?sz=64&domain=marketplace.visualstudio.com
// @grant GM_setClipboard
// @run-at document-body
@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 March 19, 2025 19:14
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 1.1
// @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
#