Cloud Explainers

Google Colab: Full Tutorial for Beginners

Google Colab (Jupyter notebooks in the cloud)15 min video

A beginner's tutorial for Google Colab, run for real: write and run notebook cells in your browser, see what Google's machine has inside, install packages with pip, upload a CSV and read it with pandas, switch on the free T4 GPU, and train a digit-reading model in 11 seconds instead of 110. Then the part that catches beginners: what a kernel restart and a new runtime delete, and how to keep your work in Google Drive.

From minutes to seconds

Your laptop is slow? With Google Colab, free in your browser, you'll train a model that reads handwritten digits in eleven seconds, not one hundred and ten.

Same notebook, two Colab runtimes: comparison table of CPU runtime vs T4 GPU runtime, Training, one pass, Installed on the laptop, Where you work, Runs on, Digits read right, Speed-up

Meet Joe. He and Jess run a neighborhood seed swap. His laptop is old and slow, and Saturday is swap day.

The neighborhood seed swap: diagram of Joe's old laptop, seed packets, swap: Saturday

He wants the year's swaps sorted, and a model that reads Jess's handwritten packet numbers.

Joe's list before Saturday: diagram of Joe's laptop, 412 swaps, Packet numbers

Here's a puzzle for later: the graphics card made training about ten times faster, but plain math on big tables ran almost fifty times faster. Why the gap?

How much faster on a T4 GPU: chart of Training the model: 9.7 x faster, Multiplying big tables: 49 x faster, Why the gap?

What Colab is

So what is Colab? You open a page at colab dot research dot google dot com, and you get a notebook: a document made of cells, some with text and some with code. Run a cell, and the code goes to a Google machine, called the runtime. The result comes back under the cell. And if you ask, that machine also gets a graphics card. The notebook itself is saved in your Google Drive, and nothing is installed on your laptop.

What Google Colab is: diagram of Your browser, The notebook, A Google machine, A GPU, if you ask, Google Drive, Google's side

Here's Colab's welcome notebook. Plus Code and plus Text add cells, the Runtime menu runs them, and the folder holds your files.

What Colab is: browser screenshot from the video

To start your own, sign in with a Google account, then File, New notebook in Drive.

What Colab is: browser screenshot from the video

And the notebook file? Joe's is swap report dot I P Y N B. That ending means it's a Jupyter notebook. It's an open format, so the same file also opens in the free Jupyter app, or in V S Code.

The file Colab saves: diagram of swap_report.ipynb, Google Colab, Jupyter, VS Code

Someone else's notebook opens read only. Copy to Drive gives you your own copy to run and change.

What Colab is: browser screenshot from the video

Think of a plot in a community garden. You get soil and tools for free, and bigger tools if you ask. At the end of the season the plot is cleared, so you carry your seeds home.

Where does your code actually run? Google's own answer: in a virtual machine that's private to your account, and only yours.

What Colab is: browser screenshot from the video

Your first cells

What happens when you run a cell? Joe's first one: print, hello from Google Colab. Shift and Enter runs it, and the output appears right under the cell. A cell can also just end with a value, like two plus two, and Colab shows it, no print needed.

Joe's notebook · Google Colab, CPU runtime
(cell-1) print("Hello from Google Colab")Hello from Google Colab
Joe's notebook · Google Colab, CPU runtime
(cell-2) 2 + 24

Text cells hold notes, written in Markdown. A hash sign makes a heading, stars make bold, and a dash starts a list. Joe's report opens with one.

A text cell is Markdown: diagram of ## Swap report **2026** - beans first, ## = a heading, **2026** = bold, - beans first = a list item, Text cells explain; code cells run

Now two code cells. The first sets seeds to a hundred and twenty-eight, the packets in the swap box. The second only multiplies seeds by two. It's a separate cell, so will it know what seeds is? It does: two hundred and fifty-six.

Joe's notebook · Google Colab, CPU runtime
(cell-6) seeds = 128
print(seeds, "packets in the swap box")128 packets in the swap box
Joe's notebook · Google Colab, CPU runtime
(cell-7) seeds * 2256

That's because every cell runs in the same kernel: one Python program that stays alive in the background, holding every variable you've made. So order matters. Cells run in the order you click them, not the order they sit on the page.

One kernel behind every cell: diagram of Joe's notebook, The kernel, seeds = 128, kept in memory, seeds * 2, 256, page order? no: click order, One Python program, always running

Here's that going wrong, on a fresh runtime. Joe runs the second cell first. Name error: seeds is not defined, because the cell that sets it hasn't run yet.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-1) seeds * 2----> 1 seeds * 2
NameError: name 'seeds' is not defined

Four controls cover most of it. Shift Enter runs a cell and moves on. Control Enter runs it and stays. Run all runs every cell, top to bottom. And Restart session gives you a clean kernel. Those last two live in the Runtime menu.

Four controls: cards of Shift + Enter, Ctrl + Enter, Run all, Restart session, Runtime menu

Inside the runtime

So what is this machine, really? Linux commands, each after an exclamation mark, tell us. n proc says two processor cores. The free command reports twelve gigabytes of memory, and d f, two hundred and twenty-six gigabytes of disk. It's plain Linux, Ubuntu twenty-four oh four, with Python three thirteen, rented by the minute.

Joe's notebook · Google Colab, CPU runtime
(cell-8) !nproc
!free -h | head -2
!df -h /content | tail -12
               total        used        free      shared  buff/cache   available
Mem:            12Gi       1.0Gi       9.2Gi       2.3Mi       2.7Gi        11Gi
overlay         226G   85M  226G   1% /
Joe's notebook · Google Colab, CPU runtime
(cell-9) !grep PRETTY /etc/os-release
!python --versionPRETTY_NAME="Ubuntu 24.04.5 LTS"
Python 3.13.18

Colab even leaves some data to practice on. The l s command lists files, and l s sample data shows a few ready-made ones: California housing prices, and handwritten digits from M nist.

Joe's notebook · Google Colab, CPU runtime
(cell-3) !ls sample_dataanscombe.json		      mnist_test.csv
california_housing_test.csv   mnist_train_small.csv
california_housing_train.csv  README.md

Here's the rule behind those lines. An exclamation mark sends a line to the Linux shell. A percent sign runs a notebook command, called a magic. Two percent signs apply it to the whole cell. Anything else is plain Python.

What the first character means: comparison table of Means vs Example, !, %, % is called, %%, %% scope, (none)

And it comes loaded. pip list shows pandas for tables, and numpy for numbers. matplotlib draws charts. scikit-learn and PyTorch are for machine learning. All of it was there before Joe typed a thing. And look at torch's version: it ends in plus C P U, so this copy can't use a graphics card yet.

Joe's notebook · Google Colab, CPU runtime
(cell-10) !pip list 2>/dev/null | grep -iE '^(pandas|numpy|matplotlib|scikit-learn|torch) 'matplotlib                            3.10.0
numpy                                 2.4.6
pandas                                2.2.3
scikit-learn                          1.6.1
torch                                 2.14.1+cpu

Those percent commands are called magics. Percent time it runs a line many times and reports the average: adding up a million numbers takes about thirty-two milliseconds here.

Joe's notebook · Google Colab, CPU runtime
(cell-5) %timeit sum(range(1_000_000))32.1 ms ± 10.2 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)

Installing packages

What if a library isn't there? Joe wants a Q R code for the swap's sign-up sheet, so he imports Q R code, and gets a module not found error. Colab even adds a hint: install it with pip.

Joe's notebook · Google Colab, CPU runtime
(cell-11) import qrcode----> 1 import qrcode
ModuleNotFoundError: No module named 'qrcode'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

So he runs pip install Q R code, with an exclamation mark in front. Will the same import work now? Six seconds later, it does. He saves the code as a picture, and l s, which lists files, shows it: swap Q R dot p n g, in a folder called slash content.

Joe's notebook · Google Colab, CPU runtime
(cell-12) !pip install -q qrcode
Joe's notebook · Google Colab, CPU runtime
(cell-13) import qrcode
qrcode.make("https://example.com/seed-swap").save("swap_qr.png")
!ls -l /contenttotal 8
drwxr-xr-x 1 root root 4096 Nov 18 15:58 sample_data
-rw-r--r-- 1 root root  693 Nov 29 16:02 swap_qr.png

That install line, in parts. The exclamation mark hands it to the shell. pip is Python's installer, install is what to do, dash q keeps it quiet, and the package name comes last.

One install line, in parts: diagram of !pip install -q qrcode, ! = run in the shell, pip = Python's installer, install = the action, -q = quiet, qrcode = the package

Your own data

How does Joe's own data get in? Click the folder icon on the left, then upload, and pick the file.

Your own data: browser screenshot from the video

l s again: swaps dot c s v, ten thousand bytes, next to the Q R code. It's on Google's machine now, not Joe's. You'll find Joe's data and the lab files linked in the description, so you can run it yourself.

Joe's notebook · Google Colab, CPU runtime
(cell-14) !ls -l /contenttotal 20
drwxr-xr-x 1 root root  4096 Nov 18 15:58 sample_data
-rw-r--r-- 1 root root   693 Nov 29 16:02 swap_qr.png
-rw-r--r-- 1 root root 10558 Nov 29 16:02 swaps.csv

Whose machine is it while you have it? whoami says root: you're the administrator. That means you can even install system programs, using apt, Linux's own installer. Here, tree draws a folder as a tree: slash content, with Joe's upload in it.

Joe's notebook · Google Colab, CPU runtime (a new one)
(cell-1) !whoamiroot
Joe's notebook · Google Colab, CPU runtime (a new one)
(cell-2) !apt-get -qq install -y tree > /dev/null
!tree -L 1 /content/content
├── sample_data
└── swaps.csv

2 directories, 1 file

pandas, Python's library for tables, reads it in one line. Four hundred and twelve swaps, four columns. head shows the first three: a date, who gave, which seed, and how many packets.

Joe's notebook · Google Colab, CPU runtime
(cell-15) import pandas as pd
df = pd.read_csv("swaps.csv")
print(df.shape)
df.groupby("seed")["packets"].sum().sort_values(ascending=False).head(5)(412, 4)
| packets
---|---
seed |
bean | 281
basil | 237
tomato | 229
pepper | 171
squash | 143

dtype: int64
Joe's notebook · Google Colab, CPU runtime
(cell-16) df.head(3)| date | giver | seed | packets
---|---|---|---|---
0 | 2026-10-13 | Joe | bean | 6
1 | 2026-04-13 | Jess | bean | 6
2 | 2026-10-20 | Lena | lettuce | 3

Which seeds moved most? Group by seed, add up the packets, sort. Beans win with 281 packets, then basil, then tomato.

The same line, grouped by giver: Nadia gave the most, 202 packets. And grouped by month, March was the busiest, with 45 swaps.

Joe's notebook · Google Colab, CPU runtime
(cell-17) df.groupby("giver")["packets"].sum().sort_values(ascending=False).head(3)| packets
---|---
giver |
Nadia | 202
Amir | 156
Omar | 140

dtype: int64
Joe's notebook · Google Colab, CPU runtime
(cell-18) df["month"] = df["date"].str[5:7]
df.groupby("month").size().sort_values(ascending=False).head(3)| 0
---|---
month |
03 | 45
09 | 42
06 | 38

dtype: int64

How long did that take? Put percent percent time on the first line of a cell, and it times the whole cell. Grouping by seed and giver: eleven point eight milliseconds. And the top pair: Nadia's tomatoes, forty-one packets.

Joe's notebook · Google Colab, CPU runtime (a new one)
(cell-6) %%time
df.groupby(["seed", "giver"])["packets"].sum().nlargest(3)CPU times: user 7.72 ms, sys: 0 ns, total: 7.72 ms
Wall time: 11.8 ms
|  | packets
---|---|---
seed | giver |
tomato | Nadia | 41
bean | Kate | 39
basil | Nadia | 37

dtype: int64

Colab's own sample data loads the same way. The California housing test file: three thousand rows, nine columns, and a median house value just under a hundred and seventy-eight thousand dollars. Good practice, if you have no data yet.

Joe's notebook · Google Colab, CPU runtime (a new one)
(cell-5) h = pd.read_csv("sample_data/california_housing_test.csv")
print(h.shape)
h["median_house_value"].median()(3000, 9)
177650.0

Joe wants that chart on paper for the swap table. matplotlib draws it in four lines: take the top five, plot them as bars, and save the picture to a file.

Joe's notebook · Google Colab, CPU runtime (a new one)
(cell-4) import matplotlib.pyplot as plt
top = df.groupby("seed")["packets"].sum().sort_values().tail(5)
top.plot.barh(title="Packets swapped this year, top 5 seeds", color="seagreen")
plt.xlabel("packets"); plt.tight_layout(); plt.savefig("top_seeds.png")
!ls /contentsample_data  swaps.csv	top_seeds.png
<Figure size 640x480 with 1 Axes>

And here's the chart Colab drew, beans on top, ready to print.

Your own data: browser screenshot from the video

Training on the CPU

Now Jess's digit reader. Jess writes a number on every seed packet by hand, so the reader learns from M nist, a classic beginner dataset: sixty thousand handwritten digits, with ten thousand more held back to test it. One cell downloads them all.

Joe's notebook · Google Colab, CPU runtime
(cell-21) from torchvision import datasets, transforms
digits = datasets.MNIST("data", train=True, download=True, transform=transforms.ToTensor())
test = datasets.MNIST("data", train=False, download=True)
print(len(digits), "training digits,", len(test), "test digits")60000 training digits, 10000 test digits

What does training actually do? The network looks at a digit and guesses. The guess is compared with the right answer, and every weight inside is nudged so the next guess is a little better. Do that for sixty thousand digits, and it learns.

Training, one batch at a time: diagram of A digit, The network, Its guess, Nudge the weights

Here's the training cell. It builds a small network, then makes one pass over all sixty thousand digits, adjusting the network after every batch of a hundred and twenty-eight. On the C P U runtime: one hundred and ten seconds.

Joe's notebook · Google Colab, CPU runtime
(cell-22) import time, torch, torch.nn as nn
torch.manual_seed(0)
device = "cuda" if torch.cuda.is_available() else "cpu"
loader = torch.utils.data.DataLoader(digits, batch_size=128, shuffle=True)
model = nn.Sequential(nn.Conv2d(1, 32, 3), nn.ReLU(), nn.Conv2d(32, 64, 3), nn.ReLU(),
                      nn.Flatten(), nn.Linear(64 * 24 * 24, 10)).to(device)
opt = torch.optim.Adam(model.parameters())
start = time.time()
for x, y in loader:
    x, y = x.to(device), y.to(device)
    loss = nn.functional.cross_entropy(model(x), y)
    opt.zero_grad(); loss.backward(); opt.step()
print(f"{device}: one pass over 60,000 digits in {time.time() - start:.1f} s")cpu: one pass over 60,000 digits in 109.5 s

Restarting the kernel

Here's the trap that catches every beginner: some of Joe's work is about to vanish. He saves a note to a file, then picks Runtime, Restart session, which restarts the kernel, the background Python program holding his variables. Print seeds, the variable from earlier? Name error. Gone.

Joe's notebook · Google Colab, CPU runtime
(cell-25) !echo "Ask Jess about the bean lot" > notes.txt
!ls /contentdata  notes.txt  sample_data  swap_qr.png  swaps.csv
Joe's notebook · Google Colab, CPU runtime
(cell-1) print(seeds)----> 1 print(seeds)
NameError: name 'seeds' is not defined

But l s shows the files are still there: the note, the C S V, the Q R code. A restart wipes the kernel's memory, not the machine's disk. Run all, and you're back.

Joe's notebook · Google Colab, CPU runtime
(cell-2) !ls /contentdata  notes.txt  sample_data  swap_qr.png  swaps.csv

Turning on the GPU

One hundred and ten seconds is slow. Does this runtime even have a G P U? PyTorch asks cuda, NVIDIA's G P U system, if one is available: false. And the G P U's own tool, n v i d i a s m i, isn't even installed.

Joe's notebook · Google Colab, CPU runtime
(cell-19) import torch
torch.cuda.is_available()False
Joe's notebook · Google Colab, CPU runtime
(cell-20) !nvidia-smi/bin/bash: line 1: nvidia-smi: command not found

What is a G P U, anyway? A C P U has a few strong cores, each good at any job, one step after another. A G P U has thousands of simple cores, all doing the same small sum at once. Training a model is millions of those sums.

CPU vs GPU, in one table: comparison table of CPU vs GPU, Stands for, Cores, Good at, This runtime, Works, Training

The fix is one menu. Runtime, then Change runtime type.

Turning on the GPU: browser screenshot from the video

Change runtime type opens this. Under hardware accelerator, pick T four G P U, and save.

Turning on the GPU: browser screenshot from the video

Saving gives Joe a brand new machine, with a G P U attached. n v i d i a s m i now answers: a Tesla T four, with about fifteen gigabytes of its own memory. And torch says true.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-4) !nvidia-smi --query-gpu=name,memory.total --format=csvname, memory.total [MiB]
Tesla T4, 15360 MiB
Joe's notebook · Google Colab, T4 GPU runtime
(cell-5) import torch
print(torch.cuda.is_available(), torch.cuda.get_device_name(0))True Tesla T4

But this new machine is empty. slash content has only Colab's sample data: no note, no spreadsheet. And Q R code is missing again. A new runtime starts from scratch, packages and all.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-2) !ls /contentsample_data
Joe's notebook · Google Colab, T4 GPU runtime
(cell-3) import qrcode----> 1 import qrcode
ModuleNotFoundError: No module named 'qrcode'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

Does the code need rewriting? No. One line picks cuda, the G P U, when it's there, and each small chunk of training data is sent to that device. Same notebook, both runtimes.

One line picks the hardware: code change of joe_digits.ipynb, device = "cuda" if torch.cuda.is_available() else "cpu" (GPU when there is one), x, y = x.to(device), y.to(device) (batches go to the device), Same notebook, both runtimes

The speed test

On the new machine, Joe reruns the download cell, then the same training cell, untouched. How long now? Eleven seconds. And both models read ninety-eight point two percent of the test digits right, so the work was the same. Only the wait changed.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-7) import time, torch, torch.nn as nn
torch.manual_seed(0)
device = "cuda" if torch.cuda.is_available() else "cpu"
loader = torch.utils.data.DataLoader(digits, batch_size=128, shuffle=True)
model = nn.Sequential(nn.Conv2d(1, 32, 3), nn.ReLU(), nn.Conv2d(32, 64, 3), nn.ReLU(),
                      nn.Flatten(), nn.Linear(64 * 24 * 24, 10)).to(device)
opt = torch.optim.Adam(model.parameters())
start = time.time()
for x, y in loader:
    x, y = x.to(device), y.to(device)
    loss = nn.functional.cross_entropy(model(x), y)
    opt.zero_grad(); loss.backward(); opt.step()
print(f"{device}: one pass over 60,000 digits in {time.time() - start:.1f} s")cuda: one pass over 60,000 digits in 11.3 s
Joe's notebook · Google Colab, T4 GPU runtime
(cell-8) model.eval()
with torch.no_grad():
    x = test.data.unsqueeze(1).float().div(255).to(device)
    right = (model(x).argmax(1).cpu() == test.targets).float().mean()
print(f"reads {right:.1%} of 10,000 new digits right")reads 98.2% of 10,000 new digits right

Does it really read digits? Here are the first twelve test digits, what was written, and what the model says. All twelve right.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-9) with torch.no_grad():
    guess = model(x[:12]).argmax(1).cpu()
print("written:", test.targets[:12].tolist())
print("model:  ", guess.tolist())written: [7, 2, 1, 0, 4, 1, 4, 9, 5, 9, 0, 6]
model:   [7, 2, 1, 0, 4, 1, 4, 9, 5, 9, 0, 6]

So, nine point seven times faster. Now the puzzle. Before the switch, Joe had also timed ten multiplications of two big tables: twenty-one seconds on the C P U. On the G P U, zero point four two. That's forty-nine times faster.

Two jobs, two speed-ups: comparison table of CPU runtime vs T4 GPU, Training, one pass, Speed-up, The puzzle, Plain math (10 matrix multiplies), Plain math, CPU, GPU

Why so big? Here's that run on the T four. A T four has two thousand five hundred and sixty small cores working at once; this runtime's C P U has two. Multiplying big tables is exactly that kind of work: millions of small sums, all at once.

Joe's notebook · Google Colab, T4 GPU runtime
(cell-11) a = torch.rand(4096, 4096, device=device)
b = torch.rand(4096, 4096, device=device)
c = a @ b
if device == "cuda": torch.cuda.synchronize()
start = time.time()
for _ in range(10):
    c = a @ b
if device == "cuda": torch.cuda.synchronize()
print(f"{device}: 10 big multiplications in {time.time() - start:.2f} s")cuda: 10 big multiplications in 0.42 s

So why only nine point seven times for training? Because training isn't only math. Every batch of digits is unpacked by the C P U, one image at a time, then copied to the G P U. The G P U finishes its math, and waits for the next batch. The slowest step sets the pace.

Training: the GPU waits for the CPU: diagram of Digits, CPU prepares, GPU does the math

What survives

Joe has now lost work twice: once to a restart, once to a new machine. So which one takes what? A restart loses your variables, but keeps your packages, and your files. A new runtime loses all three. Only the notebook itself, saved in Drive, survives both.

What survives what: comparison table of Restart the kernel vs New runtime, Lost so far, Which takes what?, Variables, pip installs, Files in /content, The notebook (cells), So

And no runtime lasts forever. Idle ones time out, and a free notebook runs twelve hours at most.

What survives: browser screenshot from the video

Saving your work

So how do you carry your seeds home? Anything you'll want next time goes to Google Drive. It takes two lines of code. The first imports drive from google dot colab. The second, drive dot mount, attaches your Drive as a folder. Colab asks you to approve, then slash content slash drive is your Drive, and a file saved there outlives the runtime.

Keep what you make: diagram of The runtime, drive.mount(...), Your Google Drive

Or take it with you. The File menu downloads the notebook, or saves a copy in Drive.

Saving your work: browser screenshot from the video

Errors you'll meet

Four errors cover most beginner trouble, and each one has a quick fix. Module not found? Install it again. Name error? Run your cells from the top. PyTorch says cuda is false? Change the runtime type. Runtime disconnected? It sat idle: reconnect and run all.

Errors you'll meet, and the fix: comparison table of You see vs Do this, Four errors, Rule, 1, 2, 3, 4, After any fix

Free or paid

Is it really free? Yes: the free tier costs nothing, but G P Us depend on availability, and Google doesn't publish the limits. Paid plans give you compute units: credits that a runtime uses up for every hour it runs. Google also has a small command line tool called colab, and it shows the rate. The C P U runtime spent zero point zero eight units an hour. The T four spent one point two four.

Joe's laptop · Google's colab command-line tool
colab usageUsage rate: 0.08/hr
Joe's laptop · Google's colab command-line tool
colab usageUsage rate: 1.24/hr

So when is Colab the right tool? For learning, notebooks, and short G P U jobs, it's hard to beat. For work that runs for days, or for hosting a website, use your own machine or a cloud server. Colab's rules don't allow those.

Colab or your own machine?: comparison table of Google Colab vs Your own machine / server, Setup, GPU, Cost, Runs for, Web servers, Best for, Rules

Three habits keep it smooth. Put your installs in the first cell. Save to Drive as you go. And use a G P U only when you need one.

Three habits: cards of Installs first, Save as you go, GPU when needed

Swap day

Saturday at the swap, Joe's old laptop is on the table, still with no Python on it. The Q R code is taped to the sign-up sheet, beans top the chart, and Jess's packet reader trained in eleven seconds.

Swap day: diagram of QR sign-up, top seeds chart, trained in 11 s

Recap

So: a notebook in your browser, code on Google's machine. The G P U is one menu away. And the runtime is temporary, so save to Drive.

Google Colab in four lines: cards of Notebook, Runtime, GPU, Temporary

If this got your first notebook running, subscribing brings more tutorials, each built on a real run.

Every cell in this video ran on real Colab runtimes, and Joe's notebook and data are linked in the description. Thanks for watching Cloud Explainers.

Sources

Demos: two real Google Colab runtimes (CPU and T4 GPU), driven cell by cell with Google's colab command-line tool; the browser scenes are Colab's own public pages, signed out. Joe, Jess and their seed swap data are made up. Every cell and output was real. Watch the full video on YouTube.

More videos

Kubernetes10 min

Docker vs Kubernetes: What's the Difference?

HTTP & HTTPS11 min

Every HTTP Status Code You Need to Know

PostgreSQL8 min

How to Fix PostgreSQL 'Relation Does Not Exist' Errors

Git9 min

Git Merge vs Rebase: Which One Should You Use?

APIs10 min

How API Webhooks Work

LLM infrastructure9 min

How LLM Tokens Work

Docker9 min

Docker Containers vs Virtual Machines: What's the Difference?

PostgreSQL9 min

MySQL vs PostgreSQL: Which One Should You Use?

Local LLMs (Ollama)15 min

Ollama: Full Tutorial for Beginners

GitHub Actions15 min

GitHub Actions: Full Tutorial for Beginners

Certificates & PKI (ADCS)8 min

How to Fix Certificate Errors: 'Your Connection Is Not Private'

AWS9 min

How the Amazon Ergo AI Model Works

LLM infrastructure9 min

How to Fix LLM API Rate Limit Errors (429)

LLM infrastructure9 min

RAG vs Fine-Tuning: Which One Should You Use?

Load balancing & Nginx24 min

Nginx: Full Tutorial for Beginners

Go (Golang)5 min

Golang go func(): Starting Goroutines in 5 Minutes

Terraform23 min

Terraform: Full Tutorial for Beginners

Go (Golang)5 min

Golang Generics ([T any]) in 5 Minutes

AWS9 min

How AWS Bedrock Works

LLM infrastructure8 min

How LLM Embeddings Work

Python9 min

How to Fix Python CUDA Memory Errors in PyTorch

Go (Golang)5 min

Golang Type Assertions in 5 Minutes

LLM infrastructure10 min

CPU vs GPU for LLM Inference: What Actually Changes

AWS8 min

Amazon Bedrock vs OpenRouter: Which One Should You Use?

Go (Golang)5 min

Golang Channels (chan) in 5 Minutes

Homelab & self-hosting21 min

Tailscale: Full Tutorial for Beginners

LLM infrastructure9 min

How RAG Works

Git11 min

Every Git Setting to Change on Day One

Linux9 min

WSL vs a Linux Virtual Machine: Which One Should You Use?

PostgreSQL9 min

Every PostgreSQL Setting to Change After You Install It

Docker9 min

What Happens When You Install Docker on Ubuntu

Python8 min

How to Fix Python 'Address Already in Use' Errors

Go (Golang)5 min

Golang Interfaces and Mocks in 5 Minutes

Git7 min

How to Fix Git 'Detached HEAD' State

Linux21 min

Linux Firewall with ufw: Full Tutorial for Beginners

Go (Golang)5 min

Golang defer Statements in 5 Minutes

Auth (OAuth, JWT)9 min

How to Fix OAuth 'invalid_grant' Errors

Databases & SQL11 min

The SQL Roadmap for Beginners

Go (Golang)5 min

Golang make() for Slices and Maps in 5 Minutes

Networking7 min

How to Fix Network 'No Route to Host' Errors on Linux

Linux6 min

How to Fix Linux 'Too Many Open Files' Errors

Django (Python web framework)11 min

Every Django Concept a Beginner Needs to Know

Linux24 min

SSH on Linux: Full Tutorial for Beginners

Go (Golang)5 min

Golang for range Loops in 5 Minutes

Databases & SQL10 min

SQL Databases: SQLite vs PostgreSQL

Django (Python web framework)10 min

The Django Roadmap for Beginners

Go (Golang)5 min

Golang Structs in 5 Minutes

Caching & Redis22 min

Redis: Full Tutorial for Beginners

Go (Golang)5 min

Golang context.Context in 5 Minutes

Databases & SQL7 min

How to Fix MySQL Database Error 1045: Access Denied for User

Go (Golang)5 min

Golang Method Receivers in 5 Minutes

Python8 min

How to Fix Python SSL: CERTIFICATE_VERIFY_FAILED Errors

Django (Python web framework)9 min

How to Fix Django Static Files Not Loading in Production

OpenRouter (one API for many AI models)8 min

OpenRouter vs Direct API Keys: Which One Should You Use?

Go (Golang)5 min

Golang if err != nil Checks in 5 Minutes

Go (Golang)8 min

How to Fix Golang 'go.mod File Not Found' Errors

AI agents & MCP22 min

MCP Servers: Full Tutorial for Beginners

Go (Golang)5 min

Golang Error Return Values in 5 Minutes

Python8 min

How to Fix Python ModuleNotFoundError: No Module Named

Go (Golang)5 min

Golang Pointers in 5 Minutes

Kubernetes8 min

How to Fix a Kubernetes Pod Stuck in CrashLoopBackOff

Homelab & self-hosting9 min

How to Fix a Homelab ESXi Host Not Responding

PostgreSQL24 min

PostgreSQL: Full Tutorial for Beginners

Load balancing & Nginx9 min

How a Load Balancer Works with HAProxy

Python9 min

How Python Virtual Environments Work

Homelab & self-hosting9 min

How to Fix Cloudflare Tunnel Errors in a Homelab

APIs9 min

How to Fix API CORS Errors: No 'Access-Control-Allow-Origin'

Auth (OAuth, JWT)9 min

How Authenticator App Login Codes Work (TOTP)

Git22 min

Git and GitHub: Full Tutorial for Beginners

Homelab & self-hosting10 min

How a Homelab Hypervisor Works (VMware ESXi)

Kubernetes9 min

How to Fix Kubernetes ImagePullBackOff Errors

DNS8 min

How to Fix DNS 'Temporary Failure in Name Resolution' on Linux

AWS8 min

How to Fix AWS CLI 'Unable to Locate Credentials'

Homelab & self-hosting10 min

Proxmox vs ESXi for Your Homelab: When Each One Wins

PostgreSQL10 min

PostgreSQL UUID vs Auto Increment: Which Primary Key Should You Use?

Kubernetes21 min

Kubernetes: Full Tutorial for Beginners

Networking9 min

How TCP Sockets Work

PostgreSQL7 min

How to Fix PostgreSQL 'Could Not Connect to Server'

Claude & the Claude Developer Platform9 min

Claude Code Hooks Will Finally Make Sense After This

DevOps & CI/CD9 min

DevOps with Ansible Will Finally Make Sense After This

Networking9 min

How SNMP Network Monitoring Works

Git8 min

How to Fix GitHub 'Permission Denied (publickey)' Errors

Docker21 min

Docker: Full Tutorial for Beginners

PostgreSQL7 min

How to Fix PostgreSQL 'Password Authentication Failed'

Linux8 min

Why One Linux Server Handles More Users Than You Think

Networking7 min

How to Fix Network 'Connection Refused' Errors

DevOps & CI/CD9 min

DevOps Pipelines: Jenkins vs GitHub Actions

Linux11 min

Linux Nginx Reverse Proxy: Full Tutorial for Beginners

Networking11 min

Every Networking Term a Beginner Needs in 12 Minutes

Docker6 min

How to Fix Docker 'Permission Denied' on docker.sock

Git7 min

How to Fix Git 'Updates Were Rejected' When You Push

Linux7 min

How to Fix nginx 502 Bad Gateway Errors on Linux

Linux8 min

How to Fix Linux apt 'Could Not Get Lock' Errors (Ubuntu)

Networking9 min

How Email Works on the Internet (SMTP) in 10 Minutes

Python8 min

The Python Roadmap for Beginners

Go (Golang)21 min

Golang REST API with Gin: Full Tutorial for Beginners

Networking10 min

How a WireGuard VPN Network Works

Linux9 min

Linux Makefiles Will Finally Make Sense After This

Auth (OAuth, JWT)9 min

SAML vs OAuth vs OpenID Connect: What's the Difference?

Python7 min

How to Fix Python cron Jobs That Never Run

Linux22 min

Linux Bash Scripting: Full Tutorial for Beginners

Networking10 min

How PXE Network Boot Works

Active Directory9 min

How Active Directory Works

Linux10 min

How to Fix a Linux systemd Service That Won't Start

Linux9 min

Linux Logs: syslog vs journald

Auth (OAuth, JWT)9 min

JWT vs Session Cookies: Which One Should You Use?

Docker10 min

Docker vs Docker Compose: Which One Should You Use?

Docker9 min

How to Fix Docker Compose Containers That Can't Talk to Each Other

Django (Python web framework)22 min

Django Full Tutorial for Beginners

Linux9 min

How Linux systemd Works

Networking8 min

How to Fix 'Windows Cannot Access' Network Share Errors (SMB)

APIs10 min

REST vs gRPC: Which One Should You Use?

Certificates & PKI (ADCS)9 min

How to Fix SSL Certificate Chain Errors (Missing Intermediate)

Python9 min

Every Python Concept for Beginners in 10 Minutes

Databases & SQL9 min

Every SQL Join Type in 10 Minutes

OpenRouter (one API for many AI models)9 min

Why OpenRouter Free Models Hit Their Limit So Fast

Gemini API & Google AI Studio9 min

Why Your Gemini API Free Tier Runs Out So Fast

OpenRouter (one API for many AI models)10 min

OpenRouter Will Finally Make Sense After This

Caching & Redis10 min

How Redis Caching Works

Gemini API & Google AI Studio10 min

Gemini API vs Vertex AI: Which One Should You Use?

Gemini API & Google AI Studio8 min

How to Fix a Leaked Gemini API Key

Go (Golang)9 min

Why Golang Uses Goroutines Instead of Threads

Gemini API & Google AI Studio9 min

How to Fix Gemini API Error 429: Resource Exhausted

Claude & the Claude Developer Platform10 min

Claude Token Pricing Will Finally Make Sense After This

Python11 min

Why Python Web Scraping Returns Nothing (and the Fix)

Python10 min

Python uv vs pip: Which One Should You Use?

Python22 min

Python Automation: Full Tutorial for Beginners

Auth (OAuth, JWT)9 min

How OAuth Login Works

Gemini API & Google AI Studio10 min

Google AI Studio Will Finally Make Sense After This

Docker10 min

What Happens When You Run a Docker Container

Claude & the Claude Developer Platform8 min

How to Fix Claude Code Billing Your API Key Instead of Your Plan

Auth (OAuth, JWT)9 min

Why Passkeys Can't Be Phished Like Passwords

PowerShell10 min

PowerShell vs Bash: Which One Should You Learn?

Linux10 min

The Linux Roadmap for Beginners

Django (Python web framework)9 min

Django vs FastAPI: Which One Should You Use?

Databases & SQL10 min

Why SQLite Is the Most Used Database in the World

Databases & SQL11 min

How a NoSQL Database Like MongoDB Works

Python11 min

How to Fix Python pip error: externally-managed-environment

Databases & SQL9 min

How to Fix MySQL Too Many Connections Database Errors

Go (Golang)9 min

Golang Concurrency Will Finally Make Sense After This

AWS10 min

How Amazon S3 Works

Kubernetes10 min

How Kubernetes Works

Git10 min

How Git Works

Docker10 min

How to Fix Docker Port Already Allocated Errors

PostgreSQL10 min

How PostgreSQL Works

Git8 min

How to Fix Git Merge Conflicts

Linux9 min

How to Fix No Space Left on Device in Linux

Networking10 min

How the Internet Works

Databases & SQL9 min

SQL vs NoSQL: When Each One Wins

Auth (OAuth, JWT)8 min

How to Fix JWT Token Expired Errors (401 Unauthorized)

Claude & the Claude Developer Platform9 min

Claude API vs Claude Pro: Why Your Subscription Doesn't Include It

AI agent skills9 min

Why AI Agent Skills Beat Giant Prompts

Linux10 min

Linux Cron Jobs Will Finally Make Sense After This

Cybersecurity10 min

Security Logs Will Finally Make Sense After This

Cybersecurity8 min

How to Fix a Security Leak: An API Key Pushed to GitHub

DNS9 min

DNS Will Finally Make Sense After This

Cybersecurity9 min

Never Ignore a Security Update

Auth (OAuth, JWT)9 min

Two-Factor Authentication Will Finally Make Sense

Networking8 min

Never Expose a Database to the Internet

Cybersecurity10 min

SSH Keys vs Passwords: Which Is Safer for Security?

Linux10 min

The 5 Levels of Linux Boot: From Power On to Login

Networking12 min

The 5 Levels of Network Firewalls

Cybersecurity10 min

Password Security: Why Hackers Crack Weak Passwords

Linux9 min

Why Your Linux Server Runs Out of Memory

Networking10 min

HTTP vs HTTPS: What Actually Changes on Your Network

Linux12 min

Every Linux File Permission You Need to Know

Linux10 min

Linux Processes vs Threads: When Each One Wins

Networking11 min

The OSI Model Will Finally Make Sense After This

Git11 min

The 7 Levels of Git

Networking10 min

Every Network Troubleshooting Command You Need

Cybersecurity10 min

Hashing vs Encryption in Cybersecurity: When Each One Wins

Networking11 min

Why the Internet Ran Out of IP Addresses

Linux11 min

Linux Package Managers: apt vs Snap vs Flatpak

Python9 min

Why Python Is Slow (and When It Doesn't Matter)

Networking11 min

TCP vs UDP: When Each One Wins

Linux8 min

Stop Running Linux as Root (Do This Instead)

Linux11 min

Linux Users and Groups Will Finally Make Sense

Cybersecurity9 min

Why Phishing Beats Good Security (and How to Spot It)

Docker12 min

The 7 Levels of Docker

AI agents & MCP12 min

AI Agents Will Finally Make Sense After This

Git8 min

Stop Using git push --force (Use This Instead)

AI agent skills10 min

Agent Skills vs MCP: When Each One Wins

Networking12 min

Networking Will Finally Make Sense After This

Linux12 min

Every Linux Command You Actually Need

Cybersecurity12 min

The 7 Levels of Cybersecurity

System design12 min

Every System Design Concept You Need, in One Diagram

PostgreSQL10 min

Why PostgreSQL Ignores Your Index