Then my 30s showed up. Money long gone, pasive income from my side projects dried up as I was not paying much attention to them. At that stage I was living in 250 square feet appartment with my new girlfriend, had about 50 USD in my pocket, resume consisting of some small random project, zero team experience during past decade and idea that I might become farmer after all. Then one day my GF showed up and told me that in couple of months we are going to have a baby.
Well, what can you do, right? Big tech was (and probably still is) out of question, but I was happy to work with startups and just build the resume, going from random line programmer to lead developer within few years. At the end, nobody cares what you did 15 years ago, current experience is what matter.
I am in my late 30s now, things turned out great after all. Got two kids, girlfriend became my wife and I am leading mission critical projects for international banks both as an architect, tech lead and consultant.
There is no sure and simple way in turning things out for better. You might get lucky, you might get not. Take your time and think about what you want to do, just be sure that you can always start again, just don't give up.