Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#

🚀 Complete Guide to Your Biome Configuration

📚 What is Linting? (For Beginners)

Linting is like having a smart assistant that reads your code and helps you:

  • Find bugs before they cause problems
  • Follow best practices and coding standards
  • Keep code consistent across your project
  • Learn better coding patterns automatically
@Kerry-vaughan
Kerry-vaughan / prompts.md
Last active October 30, 2025 06:13
Second Opinion debugging workflow

The "Second Opinion" Debugging Workflow

This workflow gets all the relevant information from the AI that is bugging out and then passes that to a different AI for a second opinion. It also tells the AI how to think about the problem.

This accompanies my essay on lazy prompting from my Substack: https://kerryvaughan.substack.com/p/how-lazy-prompting-makes-the-ai-dumber


Step 1: The Debrief (For your first AI)

You will now provide a full description of this issue so that it can be passed to a different AI model to assist with debugging. Please provide the following information:

@imkarimkarim
imkarimkarim / nvchad.cheatsheet
Last active May 25, 2026 09:10
chad-cheats (nvchad cheatsheet)
chad-cheats:
# based on: https://youtu.be/Mtgo-nP_r8Y
space + h + t : change theme
:TSInstall <language>(elixir) : add syntax highlighting support
:TSInstallInfo : see what syntax highlighting are already installed
@tnarla
tnarla / page.tsx
Created February 2, 2024 20:35
Valentine website
"use client";
import { useState } from "react";
export default function Page() {
const [noCount, setNoCount] = useState(0);
const [yesPressed, setYesPressed] = useState(false);
const yesButtonSize = noCount * 20 + 16;
const handleNoClick = () => {
setNoCount(noCount + 1);
@kashifulhaque
kashifulhaque / NvChad.md
Last active May 6, 2026 10:19
Neovim NvChad keybinds

Neovim keybinds

  • Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
  • _ (underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
    • 0 (zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
  • $ (dollar) to move the cursor at the end of line (doesn't switch to insert mode)
  • d$ will delete from wherever your cursor is till the end of the line
  • f<character> to move cursor to the first occurrence of <character>
    • f( to move cursor to first occurence of (
  • t<character> to move cursor to upto but not on the first occurrence of <character>
  • t( to move cursor to first occurence of (
@yakserr
yakserr / index.html
Last active June 14, 2022 07:29
Preview Image in Form
<!-- jsfiddle : https://jsfiddle.net/yakser/7ove0ky8/2/ -->
<!-- in production, please install Tailwind CSS instead of CDN -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<!-- Tailwind CSS CDN -->
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
@WesThorburn
WesThorburn / instructions.md
Last active April 25, 2025 13:50
Use Chart.js with Nuxt v2.11.0

Use Chart.js with Nuxt v2.11.0

Line chart example

  • Run npm i vue-chartjs
  • Run npm i chart.js hchs-vue-charts
  • Create a file called chart.js and save it in the /plugins directory
  • Give chart.js the following contents
import Vue from 'vue'
import { Line } from 'vue-chartjs'
@shamiul94
shamiul94 / How to install opengl in ubuntu.txt
Last active February 28, 2026 05:31
How to install opengl in ubuntu
What Is OpenGL?
OpenGL is a Graphics rendering API which is operating system independent, window system independent and has high-quality color images composed of geometric and image primitives.
OpenGL APIs can use following …
Gl
OpenGL API implementation (http://www.opengl.org)
Glu
OpenGL Utility
Glut – GLUT (OpenGL Utility Toolkit) – Glut is portable windowing API and it is not officially part of OpenGL.
OpenGL Utility Toolkit (http://www.opengl.org/resources/libraries/glut/)