Skip to content

Instantly share code, notes, and snippets.

@intellectronica
intellectronica / 0.README.md
Last active April 11, 2026 05:58
Nano Banana Pro SKILL - Create or Edit images.

Nano Banana Pro SKILL

Use this skill to create or edit images using Nano Banana Pro.

Installation

Unzip nano-banana-pro.zip into ~/.claude/skills or ~/.skillz/ or wherever you keep skills locally. Or upload it to the Claude app.

@intellectronica
intellectronica / 0.README.md
Last active December 21, 2025 09:56
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 February 2, 2026 13:49
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
Bash(/opt/homebrew/bin/codex *)
description Run codex with GPT-5-high
argument-hint your prompt text
model 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 May 30, 2026 21:39
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@intellectronica
intellectronica / 0.README.md
Last active May 2, 2026 00:43
Promtify: Prompt for reading messy dictation from the clipboard and turning it into a readable prompt

Promptify

Turn messy dictated instructions to AI into neat prompts that are easy to read and modify.

I do most of my prompting by dictation, usually in very confused and messy form. To be able to review these prompts and amend them before submitting them to the AI, I use this meta-prompt.

I use a Raycast AI Command which reads my clipboard and runs the prompt using Gemini 2.5 Pro. But this can work just as well with any recent LLM and driver.


@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\""
}