Apache
Update Apache on RHEL and Ubuntu
Quick reference to check Apache package updates on RHEL (httpd) and Ubuntu (apache2).
Self-hosting Next.js with PM2 and Apache
How to set up a Next.js standalone build and run PM2 behind an Apache reverse proxy on Ubuntu 24.
Apache reverse proxy for Node.js
VirtualHost config to proxy Apache to a Node.js/PM2 process, with SSL and WebSocket support for Next.js.
Bash
Deployment
Git
Generate a GitHub SSH key
Generate an ed25519 SSH key on Ubuntu, add it to GitHub, and keep ssh-agent running across sessions.
Switch a Git remote
Quick reference and commands to switch repos.
SourceTree Custom Action
Create a zip of only the files changed in a commit — for deployment handoffs without a full git archive.
Linux
Allocate Swap Memory
Reallocate swap memory for Out of Memory (OOM) errors.
Update Apache on RHEL and Ubuntu
Quick reference to check Apache package updates on RHEL (httpd) and Ubuntu (apache2).
Self-hosting Next.js with PM2 and Apache
How to set up a Next.js standalone build and run PM2 behind an Apache reverse proxy on Ubuntu 24.
Apache reverse proxy for Node.js
VirtualHost config to proxy Apache to a Node.js/PM2 process, with SSL and WebSocket support for Next.js.
MDX
Network
Next.js
Phone-test the Next.js dev server on LAN
Allow your phone's LAN host in next.config so client JS works on device.
Wide MDX CodeBlocks
Opt-in wide code fences via rehype-mdx-code-props.
Create a CodeBlock Component for MDX
Replace MDX's default fenced-code output with a custom CodeBlock — syntax highlighting, copy button, and styling.
Self-hosting Next.js with PM2 and Apache
How to set up a Next.js standalone build and run PM2 behind an Apache reverse proxy on Ubuntu 24.