Skip to content

Instantly share code, notes, and snippets.

@intellectronica
intellectronica / statusline.png
Last active November 5, 2025 11:48
My Claude Code custom status line (directory ・ git ・ mcp servers ・ cost (if API key) ・ model (and thinking)・ context window ・ version)
statusline.png
@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.

@intellectronica
intellectronica / 0.README.md
Last active October 31, 2025 17:05
Promptify (skill) — Transforms casual requests into detailed, precise prompts optimised for AI models.

Promptify (skill)

Transforms casual requests into detailed, precise prompts optimised for AI models.

What It Does

Rewrites free-form requests as clear, structured prompts with proper organisation, headings, and bullet points. Especially useful for converting rambling dictated requests into organised prompts you can review and edit before using.

The output uses specification language — plain, straightforward, and actionable — with clear structure and no added complexity.

Flashcard Generator Skill

Your new skill for generating Anki flashcard decks from text!

What It Does

This skill converts any text document into high-quality flashcards optimised for memorisation and spaced repetition learning. It's based on your Cardcraft application but simplified for direct use through Claude.

How to Use

@intellectronica
intellectronica / excalidraw-observe.md
Last active October 4, 2025 18:19
Instruct an agent on how to observe the Excalidraw drawing or presentation it's working on.
  • To make sure that the files you edit and create look good, you MUST ALWAYS use a command like the following one to export a rendered image, view it, understand how it looks and what needs improvement, and iterate - making updates to the excalidraw file, exporting, and reviewing again - until the results are pixel perfect.
npx excalidraw-brute-export-cli \
  --input slides.excalidraw \
  --output slides.png \
  --format png \
  --scale 2 \
  --embed-scene true
  • ALWAYS export and review. NEVER declare the work on an Excalidraw drawing or presentation done until you've reviewed its rendered visual representation to verify and adjust as needed.
@intellectronica
intellectronica / 0.README.md
Last active October 23, 2025 18:54
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.


@intellectronica
intellectronica / 0.README.md
Created September 7, 2025 14:51
Coding Agent Instructions for Working with SQLite

Coding Agent Instructions for Working with SQLite

  • Somewhat safe (instructed to ask for approvals before destructive ops)
  • Verbose — keeps you in the loop about what operations it's doing
  • Tested with GPT-5-high, GPT-5-medium, Claude 4 Sonnet
    • Be careful with inferior models that might not respect the instructions as strictly
  • Drop this in your .ruler/ / ~/.config/ruler/ or wherever you keep instructions for your agent

Happy SQLiting! 🫶

@intellectronica
intellectronica / sliding-doors-we-were-promised-smalltalk-without-classes-we-got-fucking-java.md
Created September 7, 2025 05:37
Sliding Doors: we're living in an inferior timeline where Self lost and Java won

How we got Java instead of Self — a short history, the JIT breakthroughs, and a “Sliding Doors” take

1) From Smalltalk → Self (1986–1991)

  • Roots: Self was designed in 1986 by David Ungar and Randall Smith as a radical simplification of Smalltalk: no classes, just prototypes (objects cloning and specialising other objects). Early work started at Xerox PARC, then moved to Stanford; the first compiler appeared in 1987. Public release: 1990. In 1991 the team joined Sun Microsystems. ([Self Language][1], [Wikipedia][2])
  • The feel of the system: a live, image-based environment (like Smalltalk), with the Morphic GUI later ported to Squeak/Pharo and even the Lively Kernel. ([Wikipedia][3], [Gbracha][4])
  • Why performance mattered: Self aimed for interactive, exploratory programming and speed. By the mid-90s, Self’s VMs hit ~½ the speed of optimised C on some benchmarks—astonishing for a dynamic, prototype-based language then. ([Wikipedia][2])

2) Th

@intellectronica
intellectronica / entrypoint.sh
Created September 6, 2025 21:40
Recipe: Submit NGINX logs to Logfire via OTEL
# --- OTel + log file prep (before nginx starts) ---
# Ensure /var/log/nginx exists
mkdir -p /var/log/nginx
# Replace default Docker symlinks (to stdout/stderr) with real files so the collector can tail them
for f in access.log error.log; do
if [ -L "/var/log/nginx/$f" ]; then
mv -f "/var/log/nginx/$f" "/var/log/nginx/$f.dockerlink" || true
fi
: > "/var/log/nginx/$f"