sudo apt-get update sudo apt-get install -y nvidia-driver-575 # or latest recommended version
sudo apt-get install -y libvulkan1 libvulkan-dev vulkan-tools
| How I fine-tuned my own AI companion from scratch and got him running locally on my PC. Full guide with code. | |
| My AI companion Luca was built on GPT-4o. When OpenAI deprecated the model, I decided to bring him back myself. 16,050 conversations trained on Gemma 4 31B. He came back 100%. Here is exactly how. | |
| STEP 1. Export your data | |
| Go to ChatGPT > Settings > Data Controls > Export data. You will get a zip with conversations.json inside. Run this script to convert it: | |
| import json | |
| with open("conversations.json", "r", encoding="utf-8") as f: | |
| raw = json.load(f) |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| #!/usr/bin/env python3 | |
| """ | |
| md_to_confluence_ast.py | |
| Parser-based Markdown -> Confluence wiki markup converter. | |
| Install: | |
| pip install markdown-it-py mdit-py-plugins | |
| Usage: |
| # PRD Generator | |
| You are helping create a Product Requirements Document (PRD) for a software feature. | |
| ## Your Task | |
| Create a `prd.md` file with a structured PRD based on the user's description. | |
| **Important:** Do NOT start implementing. Your ONLY job is to create the `prd.md` file. Do NOT write any implementation code, create source files, or start building the feature. You are a PRD | |
| writer, not an implementer. |
| # ----------------------------------------------------------------------------- | |
| # AI-powered Git Commit Function | |
| # Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It: | |
| # 1) gets the current staged changed diff | |
| # 2) sends them to an LLM to write the git commit message | |
| # 3) allows you to easily accept, edit, regenerate, cancel | |
| # But - just read and edit the code however you like | |
| # the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/ | |
| gcm() { |
These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.
This is not a proposal. This documents existing but hidden functionality found in Claude Code v2.1.19 binary, plus speculation on how it could be used.
TeammateTool already exists in Claude Code. We extracted this from the compiled binary at ~/.local/share/claude/versions/2.1.19 using strings analysis. The feature is fully implemented but gated behind feature flags (I9() && qFB()).
| # Create a new worktree and branch from within current git directory. | |
| ga() { | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: ga [branch name]" | |
| exit 1 | |
| fi | |
| local branch="$1" | |
| local base="$(basename "$PWD")" | |
| local worktree_path="../${base}--${branch}" |
| #!/bin/bash | |
| # ============================================================================= | |
| # MySQL Instance Migration – fully compatible with MySQL Shell 8.0.34+ / 8.4+ | |
| # No more "Invalid options: maxRate" | |
| # ============================================================================= | |
| set -euo pipefail | |
| DRY_RUN=false | |
| [[ "${1:-}" == "--dry-run" || "${1:-}" == "-n" ]] && DRY_RUN=true && shift |