Padding Tutorials
What do you want to build?
Filter
40 tutorials
All tutorials
How to Put Nginx in Front of a Node.js App as a Reverse Proxy
You will install Node.js 26, run a small app on a local port, and configure Nginx 1.30 to pass public traffic to it with the headers your app needs.
Intermediate · 12 min · Web servers and networking
How to Host Multiple Websites on One Server with Nginx
You will run two separate websites on one Ubuntu 26.04 server by giving each its own Nginx server block, decide what unknown names receive, and check every site before DNS points at it.
Intermediate · 11 min · Web servers and networking
How to Serve a Site with Automatic HTTPS Using Caddy 2
You will install Caddy 2.11, serve a folder with a three-line Caddyfile, see it use HTTPS and redirect HTTP without extra setup, and learn what changes when the site has a real domain.
Intermediate · 11 min · Web servers and networking
How to Install Laravel 13 on Ubuntu 26.04 with PHP 8.5
You will install PHP 8.5 from Ubuntu's own repositories and Composer from its official installer with a checksum check, create a Laravel 13 project, add a route, controller, view and test, and run the app with the built-in development server.
Intermediate · 20 min · Web frameworks
How to Prevent SQL Injection in Python and Node.js
You will write a login lookup that an attacker can break with one line of input, watch it fail, fix it with parameterised queries in both Python and Node.js, and learn the cases where parameters are not enough.
Intermediate · 14 min · Security and hardening
How to Harden SSH on Ubuntu 26.04: Keys Only, No Root, Custom Limits
You will switch an Ubuntu 26.04 server's SSH daemon to key-only logins, turn off root login, limit who can connect and how many guesses they get, and test the change without locking yourself out.
Intermediate · 12 min · Security and hardening
How to Block Brute-Force Logins with Fail2ban
You will install Fail2ban 1.1 on Ubuntu 26.04, set it up to ban any address that keeps failing SSH logins, test the rule against a sample log line, and learn how to see and undo bans.
Intermediate · 11 min · Security and hardening
How to Audit Your Linux Server's Security with Lynis
You will run a Lynis 3.1 security audit on an Ubuntu 26.04 server, read its hardening score and findings, fix one of them, and run it again to see the score move.
Intermediate · 11 min · Security and hardening
How to Add Security Headers to Your Site in Nginx
You will add the HTTP security headers every site should send, keep them in one reusable file, avoid the add_header inheritance trap, and roll out Content-Security-Policy and HSTS in the safe order.
Intermediate · 14 min · Security and hardening
How to Write and Run Tests in Python with pytest
You will install pytest 9.2 in a uv project, write tests for a small price-parsing module, run many cases from one test with parametrize, read a failure and fix the code, and use a fixture that gives each test its own temporary folder.
Intermediate · 18 min · Programming languages
How to Add Navigation to an Expo App with Expo Router
You will turn an Expo SDK 58 app into a multi-screen app with Expo Router, using files as routes, a bottom tab bar, a stack of detail screens opened from a list, a dynamic route that reads its parameter, links and navigation from code, and a not-found screen.
Intermediate · 18 min · Mobile development
How to Run Your App as a systemd Service on Ubuntu 26.04
You will write a systemd unit file that starts your app at boot, restarts it when it crashes, runs it as an unprivileged user, and sends its logs to the journal.
Intermediate · 12 min · Linux and servers
How to Undo Mistakes in Git: restore, revert, reset and reflog
You will discard edits, unstage files, fix the last commit, undo a commit safely with revert, move a branch back with reset, and bring back commits you thought you had lost with the reflog.
Intermediate · 17 min · Dev tools and workflow
How to Resolve a Git Merge Conflict
You will cause a merge conflict on purpose, read the conflict markers, resolve it by editing the file, finish the merge, back out of a merge you do not want, and pick one side of a conflict with a single command.
Intermediate · 14 min · Dev tools and workflow
How to Improve Largest Contentful Paint (LCP) on Your Website
You will measure Largest Contentful Paint on a deliberately slow page, find which of its four parts is wasting time, fix it by making the hero image discoverable early and by serving a smaller one, and learn how to check the result with field data, because 2.5 seconds is the line between good and not good.
Intermediate · 24 min · Design and frontend
How to Build Accessible HTML Forms
You will build a contact form that works with keyboards and screen readers, with real labels, grouped radio buttons, hints tied to their fields, autocomplete values, and an error summary that takes focus and links to each problem, checking the result against specific WCAG 2.2 criteria.
Intermediate · 24 min · Design and frontend
How to Add Dark Mode to a Website with CSS Variables
You will define your colours once as CSS custom properties, switch them with light-dark() and the user's system setting, add a toggle button that remembers the choice without a flash on reload, and check the text contrast of both themes with a short script.
Intermediate · 20 min · Design and frontend
How to Back Up and Restore a PostgreSQL Database with pg_dump
You will back up a PostgreSQL 18 database in three formats, restore it into a fresh database, check the copy matches, and schedule a nightly backup that deletes old files.
Intermediate · 14 min · Databases
How to Monitor a Linux Server with Prometheus and Node Exporter
You will install Node Exporter 1.12 and Prometheus 3.16 from the official release files on Ubuntu 26.04, run both as locked-down systemd services that listen on localhost only, and query your server's CPU, memory and uptime with PromQL.
Intermediate · 25 min · Data and monitoring
How to Build Your First Grafana Dashboard from Prometheus Data
You will install Grafana 13.3 from its apt repository on Ubuntu 26.04, set the admin password before the first start, keep it on localhost, connect it to Prometheus, and build a server overview dashboard with uptime, memory and CPU panels that lives in a file you can keep in Git.
Intermediate · 25 min · Data and monitoring
How to Shrink Docker Images with Multi-Stage Builds
You will build the same small web site into two Docker images, one in a single stage and one in two, and see the second come out several times smaller because it ships only the built files and a web server.
Intermediate · 13 min · Containers and Kubernetes
How to Configure a Kubernetes App with ConfigMaps and Secrets
You will keep settings and credentials out of your container image by passing them to a Kubernetes 1.37 Deployment as environment variables and as mounted files, update them without rebuilding, and learn what a Secret does and does not protect.
Intermediate · 17 min · Containers and Kubernetes
How to Run an App and PostgreSQL Together with Docker Compose
You will describe a Node.js app and a PostgreSQL 18 database in one compose.yaml, start both with one command, keep the data in a named volume, and keep the database password out of the file.
Intermediate · 16 min · Containers and Kubernetes
How to Deploy an App and Expose It with a Service on Kubernetes
You will run an app on Kubernetes 1.37 as a Deployment with two replicas, watch it heal itself, give it a stable address with a Service, reach it from your computer, and roll out a new version with a way back.
Intermediate · 16 min · Containers and Kubernetes