Skip to content

Instantly share code, notes, and snippets.

@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".
@intellectronica
intellectronica / monkey.excalidraw
Created August 13, 2025 20:55
GPT-5 one-shotted cool monkey in Excalidraw
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [
{
"type": "ellipse",
"version": 5,
"versionNonce": 123456,
"isDeleted": false,
@intellectronica
intellectronica / AGENTS.md
Last active August 28, 2025 17:44
opencode config
Source
../.config/ruler/instructions.md

Default Agent Instructions

  • You have useful tools available as MCP or command-line. Use them.
  • Unless you are absolutely sure that you have correct and, crucially, up-to-date information in your knowledge, always get information from the web. You can use Tavily for searching and getting information, and you can always use curl to fetch web pages.
  • If you are working on something that presents web pages, you should use Playwright to open these pages, take snapshots, and inspect them.
  • When working in a git repository, always switch to a new branch, unless explicitly insutrcted not to.
  • If the git repo has a corresponding repo on GitHub, use the gh tool for things like looking at issues, opening pull requests, reading review comments, and looking at CI results.