Ctrl K
Dev Docs
Practical notes and workflows for ML and development work.
58 results
ML
Dev
ML
Claude Code Docker Setup
Run Claude Code inside a reusable Docker container, scoped to one mounted project with persistent subscription auth.
Fix tqdm IProgress Warning in VS Code
Resolve the TqdmWarning: IProgress not found by upgrading jupyter, ipywidgets, and related packages.
Hermes Docker Setup on Local Host
Run Hermes inside Docker on the local Arch host with persistent host data and a limited mounted workspace.
Hermes Local Device Setup
Set up Hermes on a separate local Ubuntu device, connect over SSH, manage sessions, and optionally expose a local dev site through a reverse tunnel.
Jupyter Notebook to HTML
Convert a Jupyter notebook to a clean HTML file with output only.
Local Codex Agent Setup
Install Codex CLI on the Arch host, configure global and repo instructions, and start a local workspace-write coding session.
Local Ollama API on Linux
Install Ollama, run it as a systemd service, pull models, and call the local API from curl and Python.
Local Text to Speech with XTTS v2
Set up Coqui XTTS v2 locally on GPU and turn a text script into a single-voice narration MP3, with sentence chunking for the 250 character limit.
Multi Agent Worktree Docker Workflow
Use Git worktree slots, isolated Docker app containers, shared local infra, and normal GitHub PRs for parallel local agent work.
Qdrant RAG Vector Index Workflow
Docker-based workflow for using Qdrant as a vector database in a RAG system, including manifest export, database source export, embedding execution, production deployment, and safe reindex checks.
Register Jupyter Kernels
Register and list Jupyter kernels using venv
Text to Speech with Amazon Polly and SSML
Generate single-voice narration MP3s from SSML using Amazon Polly neural voices, chunked by paragraph and concatenated with ffmpeg.
Dev
Adding a New SSH Key to EC2
Add a new key pair to a running EC2 instance without losing existing access: key creation in AWS, local setup, public key extraction, and authorized_keys update.
BigQuery to Cloud Storage Archive
Archive selected BigQuery tables to Cloud Storage as Parquet, then validate that the exports can be downloaded and read back.
C++ VS Code GCC CMake Setup
Initial C++ development setup on Ubuntu with GCC, CMake, GDB, Ninja, and VS Code.
Convert M4B Audiobook to MP3
Convert an .m4b file to .mp3 with ffmpeg, keeping metadata and removing the video stream.
CUDA Setup on Ubuntu 24.04
Verify CUDA availability, install the CUDA Toolkit compiler (nvcc), configure environment variables, and confirm GPU access from Python.
Discard Local Changes and Switch Branch
Steps to discard all tracked and untracked local changes, then switch to another branch.
Docker -f Flags: File vs Force
The -f flag means "file" in docker compose but "force" in docker rm: point compose at a non-default compose file, and force-remove running containers.
Docker Compose Daily Workflow
Docker Compose commands on a Linux host for starting, entering, inspecting, and stopping services.
Docker Compose Dev Workspace Setup
Development setup with Ubuntu based Docker containers for backend, frontend, Redis, MySQL, Celery worker, and Celery beat.
Docker Compose Production Deploy on Ubuntu
End-to-end Docker Compose production deployment on an Ubuntu server: install Docker, run the stack, keep after reboots with systemd, and day-to-day rebuild flows.
Docker Image and Container Mental Model
Understand Docker Hub, images, containers, tags, mounts, ports, startup commands, and common docker run flags.
Docker Resource Diagnostics and Cleanup
Check Linux memory, disk, Docker cache, containerd storage, and live CPU usage, then clean Docker safely on servers and local dev machines.
FastAPI Alembic Migrations with Docker
A Docker based FastAPI project that uses SQLAlchemy models, PostgreSQL, and Alembic migrations instead of creating tables directly at startup.
FastAPI Authentication and Authorization
A Docker based FastAPI project that separates password authentication, JWT current-user resolution, role based authorization, and owner based permissions.
FastAPI Error Handling and API Responses
A Docker based FastAPI project that uses custom exceptions, global exception handlers, validation error shaping, and consistent API response contracts.
FastAPI File Upload and Frontend Integration
A Docker based FastAPI project that handles file uploads, serves uploaded media files, enables CORS, and supports frontend multipart form requests.
FastAPI PostgreSQL Auth with Repository and Async SQLAlchemy
A Docker based FastAPI project that combines PostgreSQL, password authentication, repository pattern, and async SQLAlchemy.
FastAPI Settings and Environment Variables
A Docker based FastAPI project that uses Pydantic settings, .env files, Docker Compose environment values, and validated application configuration.
FastAPI Setup with Docker
A FastAPI setup project that runs fully inside Docker and exposes basic JSON routes.
FastAPI SQLAlchemy CRUD with SQLite
A Docker based FastAPI project that combines Pydantic schemas, SQLAlchemy models, SQLite, CRUD routes, and user-post relationships.
FastAPI Testing with Pytest
A Docker based FastAPI testing setup that covers route tests, validation tests, database dependency overrides, authentication tests, and authorization tests.
Find Local Network IP
Find the IPv4 address of a Linux machine on the local network so another device can reach it over SSH.
Git Branches, Log, and Merge
View commit history, manage local and remote branches, pull new branches, and merge into main.
Git Init and First Push
Initialize a local repo, set the main branch, connect to a remote, and push for the first time.
Git Pull with Rebase
Fix a divergent main branch when the remote main changed and the local main also has an unpushed commit.
Git Workflow for Local Mirror Repositories
A fully local Git workflow using a bare .git directory as the central remote, with no dependency on any external hosting.
GitHub SSH Authentication for Local and EC2
Set up GitHub SSH authentication without repeated username and token prompts, using separate keys for local development and EC2.
Google Cloud SDK and Local BigQuery Setup
Install Google Cloud CLI globally on the host while keeping each client's gcloud config, Python venv, and BigQuery auth isolated per project.
Install NVM on Ubuntu
Install Node Version Manager on Ubuntu, then install and switch between Node.js versions per user without touching system packages.
Local SSH vs EC2: Reachability and Auth
Why a LAN device connects over SSH with just a password while EC2 needs a .pem key: reachability and authentication are separate, independent concerns.
Multiple Python Versions on Ubuntu
Install several Python versions side by side on Ubuntu using the deadsnakes PPA, then create a venv pinned to a specific version.
n8n EC2 arXiv Radar
Deploy private n8n on EC2 with Docker Compose and build a daily arXiv research digest workflow delivered by email.
Nano Usage
Keyboard shortcuts for multiline selection, cut and paste, and fast movement in long files in nano.
Python Import Path and Package Checks
Debug Python import paths, regular packages, namespace packages, __init__.py behavior, and FastAPI backend import roots.
Reach a Local Host by Name over SSH
Stop chasing a changing DHCP IP: reach a Linux host on the local network by a stable .local mDNS name or a DHCP reservation, and pick the right interface.
Render a Manim Scene with Docker
Render a Manim Community scene through the official Docker image, bind mounting the project so the output video lands locally.
Semantic Versioning for Releases
Decide which part of a MAJOR.MINOR.PATCH version to bump on each release based on the kind of change, including the pre-1.0 rules and the one hard rule for publishing.
SSH into a Local Network Device
Connect from a Linux host to another device on the same local network over SSH, using a named host alias in ~/.ssh/config.
SSH into EC2 from Linux Host
Configure and connect to an AWS EC2 instance over SSH from a Linux host using a named host alias in ~/.ssh/config.
systemd and Nginx Fullstack Deployment
Deploy a Next.js frontend and FastAPI backend on Ubuntu with systemd, Redis, Celery, Nginx, and Cloudflare Origin Certificate SSL.
Transfer Files Between Machines with rsync over SSH
Move or copy folders between two Linux machines on the same network using SSH for the connection and rsync for the transfer, with a dry-run and verify step.
Undo the Last Commit and Keep the Changes
Use git reset --mixed HEAD~1 to remove the last commit while keeping its changes in the working tree, ready to fix and re-commit.
Upload Large Files to S3 with the AWS CLI
Upload multi-gigabyte files to S3 with the AWS CLI's parallel multipart upload instead of the browser console, and keep a long transfer alive.
VS Code Note Markdown Viewer Extension
Create, package, install, and publish a small VS Code extension that opens .note.md files in a custom rendered Markdown viewer.
VS Code Workflow
Keyboard-driven VS Code workflow with a clean UI, visible editor tabs, Explorer navigation, and a small custom shortcut set.
VS Code Workspace Excludes
Hide generated folders from the VS Code Explorer and exclude them from search results.