Skip to content

Instantly share code, notes, and snippets.

@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 1, 2025 21:39
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"
@intellectronica
intellectronica / keybindings.json
Created September 6, 2025 06:17
VSCode Keybinding for cycling through Copilot Chat Agent models
[
{
"key": "tab",
"command": "workbench.action.chat.switchToNextModel",
"when": "chatInputHasFocus && chatIsEnabled && !lockedToCodingAgent && !quickChatHasFocus && chatLocation == 'panel'"
}
]
@intellectronica
intellectronica / vscode-yolo.md
Last active September 4, 2025 00:51
VSCode / Copilot YOLO Mode - how to auto-approve tools and terminal commans in copilot chat agent
@intellectronica
intellectronica / 0.README.md
Last active August 26, 2025 15:30
Create a gist with multiple files (including binaries) in a directory

gistify.py

Create a gist with multiple files (including binaries) in a directory

By Eleanor Berger < @intellectronica > and Codex CLI / GPT-5.


usage: gistify.py [-h] [--public | --secret] [directory]
@intellectronica
intellectronica / n8n-github-to-todoist.json
Created August 24, 2025 14:23
n8n GitHub --> Todoist
{
"name": "GitHub → Todoist",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
@intellectronica
intellectronica / i_heart_gpt5.py
Created August 14, 2025 13:11
VSCode / GitHub Copilot Chat Agent with GPT-5-mini Banner Script
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "rich>=13.0.0",
# "pyfiglet>=0.9.0",
# ]
# ///
"""Display a full-screen colorful banner that reads "I ❤️ GPT-5-mini".