Skip to content

Instantly share code, notes, and snippets.

@phpfour
phpfour / optimize.md
Created June 9, 2026 17:29
Claude Fable 5 Prompt

Act as a Principal Software Architect and Performance Engineer.

Your task is to perform a comprehensive performance audit and refactor of this entire codebase.

Before making any changes:

  1. Thoroughly analyze the architecture, code structure, dependencies, database access patterns, caching strategy, queues, API endpoints, background jobs, asset loading, and deployment configuration.

  2. Identify all performance bottlenecks, including but not limited to:

  • N+1 database queries
@Taik
Taik / chatgpt-copy-cleaner.js
Created August 17, 2025 20:48
ChatGPT Copy Cleaner
// ==UserScript==
// @name ChatGPT Copy Cleaner
// @namespace http://tampermonkey.net/
// @version 2025-08-06
// @description Cleans text copied from ChatGPT
// @author Thinh Nguyen
// @match https://chat.openai.com/*
// @match https://chatgpt.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @run-at document-end

NotebookLM Hacks

NotebookLM Hacks is a userscript that enhances the user experience of Google NotebookLM. It adds various features and improvements to make notebook management easier and more efficient.

Key Features

📊 Project Management

  • Hide featured notebooks sections for cleaner interface
  • Search notebooks by title and description
@gummipunkt
gummipunkt / bitwarden_find_duplicates.py
Last active March 28, 2026 19:42
Remove all Bitwarden duplicates from json file
import json
import os
from collections import defaultdict
import sys
def validate_json_structure(data):
"""Validate the basic structure of the Bitwarden JSON export"""
if not isinstance(data, dict):
raise ValueError("Invalid JSON format: Root must be an object")
if 'items' not in data:
@wasulabenjamin
wasulabenjamin / How to activate Sublime Text Build 4200 x64.md
Last active July 2, 2026 18:05
How to activate Sublime Text Build 4200 x64

Activate Sublime Text Build 4200 x64

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner, navigate to instalation folder and select sublime_text.exe
  3. On the Search for bar in the left panel, input: 0F B6 51 05 83 F2 01
  4. Now in the editor, click on the first byte (0F) and start replacing each byte by: C6 41 05 01 B2 00 90
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

// ==UserScript==
// @name YouTube Shorts Blocker: My Attention Span's Last Hope
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Outsmart the algorithm. Restores your ability to watch single videos without falling into the Shorts abyss.
// @author Gemini 1.5 Pro + Claude 3.5 Sonnet + GPT o4
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
// Make sure to have tampermonkey installed, if this was downloaded as a file then it's not installed/enabled
/**
* Adds "failed" status to Action Scheduler cleanup action.
*
* Default is "complete" and "canceled," leaving "failed" actions
* in the Action Scheduler to pile up indefinitely.
*
* Filter located in action-scheduler/classes/ActionScheduler_QueueCleaner.php
*
* @see https://wpcodebook.com/woocommerce-action-scheduler-cleanup-php/
*/
@xMarch
xMarch / patreondownloader.js
Last active October 8, 2024 15:37
Simple Patreon Attachment Downloader
// ==UserScript==
// @name Simple Patreon Attachment Downloader
// @namespace Ouraker.SimplePatreonAttachmentDowloader
// @version 0.2
// @description A simple downloader that download patreon posts.
// @author Ouraker
// @match https://www.patreon.com/*/posts
// @icon https://www.google.com/s2/favicons?sz=64&domain=patreon.com
// @require https://raw.githubusercontent.com/Stuk/jszip/main/dist/jszip.min.js
// @require https://raw.githubusercontent.com/eligrey/FileSaver.js/master/dist/FileSaver.js
@lumynou5
lumynou5 / youtube-commenter-names.user.js
Last active July 3, 2026 04:45
Make YouTube display the names of commenters instead of their handles.
// ==UserScript==
// @name YouTube Commenter Names
// @version 1.12.0
// @description Make YouTube display the names of commenters instead of their handles.
// @author Lumynous
// @license MIT
// @match https://www.youtube.com/*
// @match https://studio.youtube.com/*
// @exclude https://www.youtube.com/persist_identity
// @exclude https://studio.youtube.com/persist_identity
// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw