You build on failure. You use it as a stepping stone. Close the door on the past. You don't try to forget the mistakes, but you don't dwell on it. You don't let it have any of your energy, or any of your time, or any of your space.
I was literally just going and applying for jobs, and I couldn't get a job, and I was getting more and more broke, and you find yourself groveling for jobs you don't even want.