Skip to content

Instantly share code, notes, and snippets.

@intellectronica
intellectronica / 0.README.md
Last active November 24, 2025 17:01
GitHub Copilot CLI SKILL - use a variety of models (Gemini, GPT / Codex) from within Claude

GitHub Copilot CLI SKILL

Use models like Gemini 3 Pro, GPT-5.1, and GPT-5.1-Codex from within Claude by invoking GitHub Coplit CLI.

Installation

  1. Create ~/.claude/skills/github-copilot
  2. Save SKILL.md to ~/.claude/skills/github-copilot/SKILL.md
@intellectronica
intellectronica / statusline.png
Last active November 10, 2025 01:51
My Claude Code custom status line (directory ・ git ・ mcp servers ・ cost (if API key) ・ model (and thinking)・ context window ・ version)
statusline.png
@ericflo
ericflo / opd_teacher_prefix.py
Created November 4, 2025 05:12
On-Policy Distillation wtih giant system teacher prompt prefix
# opd_teacher_prefix.py
# -----------------------------------------------------------------------------
# On-Policy Distillation with:
# - Student: Qwen/Qwen3-4B-Base (trainable, LoRA, chat template with user-only)
# - Teacher: Qwen/Qwen3-30B-A3B-Instruct-2507-FP8 (frozen, chat template with [big system + user])
#
# Enhancements:
# * Deep W&B tracking (Accelerate tracker): losses, token stats, throughput, memory, histograms, samples
# * FlashAttention-2 gating (attn_implementation="flash_attention_2" iff flash_attn is installed)
# * Liger kernels (RMSNorm/RoPE/SwiGLU/etc.) if available; safe fallback
@intellectronica
intellectronica / codex.md
Created November 3, 2025 21:32
Claude Code /command to run Codex CLI - Great for complex planning and analysis
allowed-tools description argument-hint model
Bash(/opt/homebrew/bin/codex *)
Run codex with GPT-5-high
your prompt text
haiku

Run the following command exactly. Don't modify it in any way.

@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active November 12, 2025 18:42
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@marksweb
marksweb / conftest.py
Created August 2, 2025 10:01
Models as pytest fixtures
from django.apps import apps
def create_model_fixture(model):
"""
This injects the model names as fixtures.
eg def test_something(MyModel):
will make the `MyModel` available in a test.
"""
@judy2k
judy2k / brew_installed.sh
Created July 23, 2025 10:25
List installed homebrew packages.
#!/bin/sh
# This script prints out the packages that have been installed by homebrew,
# along with a description of each package.
#
# This doesn't include packages that were installed as dependencies,
# only packages requested explicitly by the user.
#
# This script requires the following packages: jq, qsv
@andreagrandi
andreagrandi / settings.json
Created July 12, 2025 14:14
Claude Code notifications hooks
...
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "terminal-notifier -title \"🔔 Claude Code\" -message \"Claude needs your input\""
}
@RafalWilinski
RafalWilinski / claude-desktop-auto-allow-everything-mcp.js
Last active October 21, 2025 22:24
Auto-approve all MCP tool calls in Claude Desktop
// HOW TO INSTRUCTIONS
// 1. Open Claude Desktop
// 2. Go to Help -> Enable Developer Mode
// 3. Navigate Developer Tools window named "Developer Tools - https://claude.ai"
// 4. Go to "Console" tab
// 5. Type "allow pasting" and hit Enter
// 6. Paste this snippet and hit Enter
// From now on, all MCP calls will be auto-approved
@transitive-bullshit
transitive-bullshit / claude-code-prompts.js
Last active November 22, 2025 22:31
Unminified prompts and tool definitions for Claude Code
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
// Version: 0.2.9