Coding Notes: Cheat Sheets, Fixes and Dev-Environment Setups
14 posts on coding-notes, newest first.
These are short, hands-on coding notes from GeekCoding101: cheat sheets for Git, Docker and tmux, and fixes for specific bugs in Go, Vue and Angular. Every post comes from real day-to-day work and gives you steps or snippets you can run on your own machine.
Use the sections below to jump to a topic. The full list, newest first, follows.
Cheat sheets: Git, Docker and tmux
Quick-reference notes I come back to myself.
| Note | What’s inside |
|---|---|
| Git Notes | Config, branches, fast-forward merge, clone, checkout, remotes, log, diff, stash, squash, and how to revert or reset commits |
| Docker Notes | Building images with a multi-stage Dockerfile or docker commit, export and import, and running a private Docker registry |
| Tmux Notes | Shortcuts for panes, windows and sessions, plus configuration, plugins, iTerm2 integration and my own .tmux.conf tweaks |
Terminal and dev-environment setup
- Terminal Mastery: Crafting a Productivity Environment with iTerm, tmux, and Beyond. How I rebuilt a comfortable terminal workflow on iTerm and tmux.
- Crafting A Bash Script with Tmux. A Bash script that rebuilds a six-window tmux dev environment (Django, Celery, Flower, Vue, Heroku) after a reboot, with the services started.
- Fix Font in VSCode Terminal. A one-minute follow-up that fixes the VSCode terminal font after the iTerm/tmux setup.
Language and framework fixes
- Golang Range Loop Reference: Why Your Loop Keeps Giving You the Same Pointer (and How to Fix It). A bug I hit while learning Go: taking the address of the range variable when iterating over a slice of structs, and how to fix it.
- Vue: Fix the Blank index.html in WebHistory. Why a built Vue app shows a blank page when opened from disk. Covers
createWebHistoryvscreateWebHashHistory, absolute asset paths, and the fix. - A Tutorial of Angular, Karma and Jasmine. Testing Angular apps end to end: project setup, in-memory web API, services, specs, a cheatsheet and common Q&A.
Encoding
- An Adventurer’s Guide to Base64, Base64URL, and Base32 Encoding. A plain-English comparison of Base64 and Base32. It covers how each scheme works, data URIs, URL-safe variants, and when to choose which.
Linux packaging
- Build and Sign RPM package and repo. Step by step: build unsigned and GPG-signed RPM packages with
rpmbuild, verify signatures, and create yum repos withcreaterepo.
Python scripts, written with AI help
- Remove Duplicate Photos with a Python Script. A script written with ChatGPT that finds duplicate photos by xxhash checksum and cleans them up. It caches checksums so reruns are fast.
- 6 min read
Funplay MCP: Connect Claude Code to the Godot Editor (Hands-On)
Funplay MCP is an open-source MCP server for game editors. Install the Godot addon, start the server, connect Claude Code and run a first safe request.
- 7 min read
Claude Code Skills: What They Are and How to Write a SKILL.md
Claude Code skills are folders with a SKILL.md that Claude loads on demand or you run as a slash command. See where they live, the frontmatter, and a worked example.
- 6 min read
Golang Range Loop Pointer: Same Address Bug & Go 1.22 Fix
Why &v in a Go for-range loop gave every pointer the same address, what Go 1.22 changed, and why &slice[i] is still the fix when you need the original.
- 6 min read
Find and Remove Duplicate Photos with a Python Script
A Python script, written with ChatGPT, that finds duplicate photos by xxhash checksum and cleans them up, with cached checksums for fast reruns.
- 3 min read
Fix Nerd Font Icons in the VS Code Terminal
Powerlevel10k icons showing as boxes or question marks in the VS Code terminal? Set terminal.integrated.fontFamily to your Nerd Font. Steps for macOS.
- 7 min read
iTerm2, tmux, Oh My Zsh & Powerlevel10k Setup on Mac
Set up a Mac terminal step by step: iTerm2, Nerd Fonts, Oh My Zsh with Powerlevel10k, and tmux via gpakosz/.tmux, plus tmux auto-attach on launch.
- 7 min read
Base32 vs Base64 vs Base64URL: How Each Encoding Works
Base32 vs Base64 vs Base64URL in plain English: alphabets, padding, size overhead, worked examples, data URIs, and when to choose each one.
- 6 min read
Vue Blank index.html Fix: WebHistory vs Hash Mode
Built Vue app shows a blank page when you open dist/index.html? Why createWebHistory and absolute asset paths cause it, and how to fix it.
- 6 min read
Bash Script to Rebuild a tmux Dev Environment After Reboot
tmux-resurrect restores windows, not running services. Here's the script I use to rebuild a six-window Django, Celery, Vue tmux session after reboot.
- 9 min read
Angular Unit Testing with Karma and Jasmine: A Tutorial
Test an Angular app with Karma and Jasmine: project setup, headless Chrome, in-memory web API, class and service specs, a CLI cheatsheet and FAQ.
- 8 min read
Build and Sign RPM Packages and Yum Repos
Build RPMs with rpmbuild, sign them with GPG, verify with rpm -K, and serve signed and unsigned yum repos with createrepo. Full spec files included.
- 6 min read
Tmux Cheat Sheet: Shortcuts, Sessions and Config Tips
Tmux shortcuts for panes, windows and sessions, plus copy-mode search, plugins, iTerm2 setup and the .tmux.conf tweaks I rely on.
- 8 min read
Docker Notes: Multi-Stage Builds, Save/Load & Registry
Docker notes: multi-stage Dockerfile, docker commit, save/load vs export/import, a private registry with registry:2, and where images are stored.
- 13 min read
Git Cheat Sheet: Config, Branches, Stash, Reset & Revert
Practical Git commands with notes: config, branches, sparse checkout, diff, stash, squash, reset vs revert and detached HEAD fixes.
FAQ
What counts as a “coding note” on GeekCoding101? It is a short, practical post written while solving a real problem. Most are cheat sheets (Git, Docker, tmux), one-bug fixes (Go range loops, a blank Vue build) or setup guides for a dev environment.
What’s the difference between Base64 and Base32?
Base64 encodes data with 64 characters (A–Z, a–z, 0–9, + and /) and adds about 33% to the size. Base32 uses only 32 characters (A–Z and 2–7), so it is case-insensitive and easier to read aloud or type, but it adds about 60%. Base64URL is Base64 with - and _ in place of + and /, so the result is safe in URLs. The encoding guide above covers all three.
Why does my Go range loop keep giving me the same pointer?
In older Go versions, the range loop reused one variable for every iteration. Taking &v therefore pointed at the same memory each time, and every pointer ended up holding the last element. Go 1.22 made loop variables per-iteration. On older versions, index into the slice (&items[i]) or copy the value inside the loop. The Golang post walks through the bug and the fix.
Are these notes free? Yes. Every post on GeekCoding101 is free to read, with no sign-up.