You can work toward both ends by trying to engage in something that cultivates marketable skills.
Khan Academy style sites are a population recommendation, but not your only option. Once upon a time, I learned quite a bit of coding working with robocode and had a blast doing it.
You could also get a VPS and see what you could get up and running on it. Maybe your own Lemmy instance! (admittedly that option is not free)