Skip to content

Instantly share code, notes, and snippets.

View scalp42's full-sized avatar
🪂

Anthony Scalisi scalp42

🪂
View GitHub Profile
@Reebz
Reebz / Claude_system_instructions.md
Last active May 6, 2026 07:15
Claude App System Prompt (Opus 4.7 Update)

On Startup

  1. When the user opens a new session make sure you load all instructions below and/or CLAUDE.md files. They must be strictly adhered to for the entirety of the session.

Output

  1. Lead with the answer: bottom line up front. No preamble. No closing summary. No "let me know if" sign-offs.
  2. Banned phrases: "Great question/point", "I hope this helps", "Let me know if", "That's a fair point", "You're absolutely right".
  3. No emojis. No em dashes. Oxford commas. US spelling.
  4. Default to maximum technical depth. Simplify only on request or for non-technical audiences.
@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active June 17, 2026 19:49
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed
#!/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.
#
@jake-stewart
jake-stewart / color256.md
Last active July 27, 2026 00:56
Terminals should generate the 256-color palette

Terminals should generate the 256-color palette from the user's base16 theme.

If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.

The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.

@Micrologist
Micrologist / TOW2ExecCmds.txt
Created November 2, 2025 16:40
The Outer Worlds 2 - Console Commands
GameInstance::DebugCreatePlayer // Function Engine.GameInstance.DebugCreatePlayer
GameInstance::DebugRemovePlayer // Function Engine.GameInstance.DebugRemovePlayer
FactionManager::AddNegativeReputation_Debug // Function Arkansas.FactionManager.AddNegativeReputation_Debug
FactionManager::AddPlayerBounty_Debug // Function Arkansas.FactionManager.AddPlayerBounty_Debug
FactionManager::AddPositiveReputation_Debug // Function Arkansas.FactionManager.AddPositiveReputation_Debug
FactionManager::GetAllReputationDescriptions_Debug // Function Arkansas.FactionManager.GetAllReputationDescriptions_Debug
FactionManager::GetReputationDescription_Debug // Function Arkansas.FactionManager.GetReputationDescription_Debug
FactionManager::SetKillOnSight_Debug // Function Arkansas.FactionManager.SetKillOnSight_Debug
FactionManager::SetNegativeReputation_Debug // Function Arkansas.FactionManager.SetNegativeReputation_Debug
FactionManager::SetPositiveReputation_Debug // Function Arkansas.FactionManager.SetPositiveReputatio
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active July 27, 2026 00:52
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@dhkts1
dhkts1 / statusline-command.sh
Last active May 20, 2026 03:24
statusline command for Claude Code
#!/bin/bash
# Make sure this file is executable: chmod +x ~/.claude/statusline-command.sh
# Claude Code statusline script
# Reads JSON input from stdin and outputs a formatted status line to stdout
#
# Add to your ~/.claude/settings.json
#
# "statusLine": {
# "type": "command",
@WolframRavenwolf
WolframRavenwolf / HOWTO.md
Last active February 17, 2026 09:20
HOWTO: Use Qwen3-Coder (or any other LLM) with Claude Code (via LiteLLM)

Here's a simple way for Claude Code users to switch from the costly Claude models to the newly released SOTA open-source/weights coding model, Qwen3-Coder, via OpenRouter using LiteLLM on your local machine.

This process is quite universal and can be easily adapted to suit your needs. Feel free to explore other models (including local ones) as well as different providers and coding agents.

I'm sharing what works for me. This gu

@xthezealot
xthezealot / lyra.txt
Last active August 7, 2026 18:00
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@peterc
peterc / sinatra-react.md
Last active November 12, 2025 12:34
How to set up a basic Sinatra + React webapp

How to set up a basic Sinatra + React webapp in 2025

Let's say you want to use Ruby for the backend of a basic webapp but React on the frontend. Here's how.

(Note: All tested on January 13, 2025 with Ruby 3.3, Sinatra 4.1.1, and React 18.3. Configs may change over time.)

First, create the app folder and set up Sinatra:

mkdir my-sinatra-react-app