TL;DR: stoicism rocks. the best thing I've adopted ever.
Secret? First of all, stoicism. When COVID started, I got into and quickly merged into my philosophy. I still have a lot to learn, read and internalize (finish the big 3 stoics, yudkovsky, taleb, kahneman), but even now it works pretty well. It successfully moves away from the orthodox version, so I'd recommend you to meditate a lot about the statements it gives instead of just accepting them. For example, I think I started to understand how all this "you can shape reality with your mind" stuff works. Nothing magical, just a proper mindset which is surprisingly similar to the stoic one.
Second - of course, I have savings. I anticipated a crisis long before so I started to stash money. In the best case, I have a couple of years of runaway (and even more if I return home).
Third - I have some ideas to build. So I plan to enrich my github / cv and in the meantime apply to interesting jobs (yes, I'm still picky). I planned to build the stuff anyway, so why not do it in a comfortable manner (and not tired after day job in the evenings). Plus, I can rehearse the proper escape to full-time tinkering which I hope the future will allow me to do.
Fourth - the upside of being a small asocial country is that it has already removed the quarantine. So I've already started going to coworking and got an awesome boost to productivity.