Dev
Adding a New SSH Key to EC2Add 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 ArchiveArchive selected BigQuery tables to Cloud Storage as Parquet, then validate that the exports can be downloaded and read back.
C++ VS Code GCC CMake SetupInitial C++ development setup on Ubuntu with GCC, CMake, GDB, Ninja, and VS Code.
Convert M4B Audiobook to MP3Convert an .m4b file to .mp3 with ffmpeg, keeping metadata and removing the video stream.
CUDA Setup on Ubuntu 24.04Verify CUDA availability, install the CUDA Toolkit compiler (nvcc), configure environment variables, and confirm GPU access from Python.
Discard Local Changes and Switch BranchSteps to discard all tracked and untracked local changes, then switch to another branch.
Docker -f Flags: File vs ForceThe -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 WorkflowDocker Compose commands on a Linux host for starting, entering, inspecting, and stopping services.
Docker Compose Dev Workspace SetupDevelopment setup with Ubuntu based Docker containers for backend, frontend, Redis, MySQL, Celery worker, and Celery beat.
Docker Compose Production Deploy on UbuntuEnd-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 ModelUnderstand Docker Hub, images, containers, tags, mounts, ports, startup commands, and common docker run flags.
Docker Resource Diagnostics and CleanupCheck 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 DockerA Docker based FastAPI project that uses SQLAlchemy models, PostgreSQL, and Alembic migrations instead of creating tables directly at startup.
FastAPI Authentication and AuthorizationA Docker based FastAPI project that separates password authentication, JWT current-user resolution, role based authorization, and owner based permissions.
FastAPI Error Handling and API ResponsesA Docker based FastAPI project that uses custom exceptions, global exception handlers, validation error shaping, and consistent API response contracts.
FastAPI File Upload and Frontend IntegrationA 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 SQLAlchemyA Docker based FastAPI project that combines PostgreSQL, password authentication, repository pattern, and async SQLAlchemy.
FastAPI Settings and Environment VariablesA Docker based FastAPI project that uses Pydantic settings, .env files, Docker Compose environment values, and validated application configuration.
FastAPI Setup with DockerA FastAPI setup project that runs fully inside Docker and exposes basic JSON routes.
FastAPI SQLAlchemy CRUD with SQLiteA Docker based FastAPI project that combines Pydantic schemas, SQLAlchemy models, SQLite, CRUD routes, and user-post relationships.
FastAPI Testing with PytestA Docker based FastAPI testing setup that covers route tests, validation tests, database dependency overrides, authentication tests, and authorization tests.
Find Local Network IPFind the IPv4 address of a Linux machine on the local network so another device can reach it over SSH.
Git Branches, Log, and MergeView commit history, manage local and remote branches, pull new branches, and merge into main.
Git Init and First PushInitialize a local repo, set the main branch, connect to a remote, and push for the first time.
Git Pull with RebaseFix a divergent main branch when the remote main changed and the local main also has an unpushed commit.
Git Workflow for Local Mirror RepositoriesA 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 EC2Set up GitHub SSH authentication without repeated username and token prompts, using separate keys for local development and EC2.
GitHub SSH over Port 443Fix 'ssh: connect to github.com port 22: Connection timed out' on networks that block port 22 by routing Git SSH through ssh.github.com on port 443.
Google Cloud SDK and Local BigQuery SetupInstall 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 UbuntuInstall 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 AuthWhy 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 UbuntuInstall several Python versions side by side on Ubuntu using the deadsnakes PPA, then create a venv pinned to a specific version.
n8n EC2 arXiv RadarDeploy private n8n on EC2 with Docker Compose and build a daily arXiv research digest workflow delivered by email.
Nano UsageKeyboard shortcuts for multiline selection, cut and paste, and fast movement in long files in nano.
Python Import Path and Package ChecksDebug Python import paths, regular packages, namespace packages, __init__.py behavior, and FastAPI backend import roots.
Reach a Local Host by Name over SSHStop 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 DockerRender a Manim Community scene through the official Docker image, bind mounting the project so the output video lands locally.
Semantic Versioning for ReleasesDecide 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 DeviceConnect 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 HostConfigure 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 DeploymentDeploy 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 SSHMove 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 ChangesUse 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 CLIUpload 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 ExtensionCreate, package, install, and publish a small VS Code extension that opens .note.md files in a custom rendered Markdown viewer.
VS Code WorkflowKeyboard-driven VS Code workflow with a clean UI, visible editor tabs, Explorer navigation, and a small custom shortcut set.
VS Code Workspace ExcludesHide generated folders from the VS Code Explorer and exclude them from search results.