[0] https://en.m.wikipedia.org/wiki/The_C_Programming_Language
Which (obviously) couldn't work, as there was no way to download those dependencies mid-flight.
Made some progress with the book during the flight, but it was mostly theoretical rather than being able to do the things. ;)
So I learned C++ just by reading the book, learning all about complicated object oriented features without ever having written any code. About six months later or so I got access to a Borland C++ compiler, and at that point I could actually do stuff.
It's possible to learn to program that way if you don't have any better alternative, but it's not a path I'd recommend if you do.
While I'd never consider trying to impose that approach on someone, I'd certainly suggest it. It really encourages attention to detail and total focus, which are increasingly valuable skills these days.
* No programming
* Programming with no Internet
Preload it with books.
Summary: he was involved in patent litigation and had to analyse a codebase on a computer locked in a vault. He couldn't bring in any electronics but he did discover that Python was installed on the machine he was using. The video describes the rest.