What do I do if I can't get a decent job due to criminal history/poor reputation?

I am 28 and made some poor choices in the past. I have lost 2 well-paying jobs due to poor reputation and poor judgement outside the workplace. I won't elaborate, but within the past 6 years, I managed to get in trouble twice. These situations were not related to work, but once my employers found out, they all terminate me.

I don't know what to do anymore. I don't have career stability.

I have knocked out most public-facing jobs due to my history. I am a software engineer, but even employers don't want to hire me in this line of work. What is left for me?

Updates
+1 y
Could use some useful feedback on this one.
What do I do if I can't get a decent job due to criminal history/poor reputation?
Post Opinion