There's a saying that life is 10% what actually happens to you and 90% how you react to it. It goes hand in hand with waking up on the " wrong" side of the bed. You either react positively or negatively to the situation presented, then you become a magnet and attract more of what you think about. "I'm mad I woke up late" becomes, "I'm not in a good mood", that causes you to actively notice every little thing that you dislike about everything. The snowball continues until you've spent an entire day unhappy because of one thing, you woke up late. There is a flip side to it though.
Suppose instead of focusing on being mad that you woke up late, you focus on how it can benefit you, a solution. I've had many jobs that required me to be in the car by 5:30 or 6 AM if I wanted to be on time, so I know how crucial it is to be up and out the door, but hear me out. You know you're going to be late, there's nothing you can do about it. Why not use that, now extra, time to do something within reason that makes you happy? If you usually skip breakfast, grab a bite to eat. If you usually have to drive like you're in the Indy 500, sit back, enjoy your commute and some music. You're late regardless, but this way you've made an effort to salvage the remainder of your day.
It's too easy to get caught in spirals based on single events, that's why you have to make an effort to be conscious about what you're focusing on. It's the same way with setting goals for yourself. You have to know what you want in order to chase it. You can't hit a target you can't see. Even if you have the greatest speech about how you're going to take over the world (please don't do that, I'm just making an example) but you can't even believe in yourself, let alone envision it, it's never going to happen. You have to remember that you are in control of your mind, not the other way around. Also, cut yourself some slack, you didn't just wake up one day and decide to doubt yourself. Everyone has been molded and shaped by friends, family, and anything else they've been exposed to since they were born.
At first, you will struggle with staying in control of your mindset, it's not an overnight process. Just like any learned behavior, the more you practice, the better you'll get. It has taken me years to break the pessimistic mindset that I've had for as long as I can remember, and it was well worth it. I've been able to recognize so many would have been missed opportunities, simply because I've learned to no get clouded by problems. I remember a while back saying I wanted to go out of town to a specific event with a homegirl, something happened and I wasn't able to go. I almost got in a rut for things not going how I planned, but we decided to do something local instead. I kid you not, we met someone at the local event who happened to travel a lot and invited us both to go to the same place we originally intended to go.
It wasn't when I originally planned, or during that event, but I still got to go. Plus, me and my homegirl didn't have to pay for the trip. To this day, the people that we met on that trip are still some of the coolest people we know. Situation can truly be what you make of them. There will always be exceptions, but if you can challenge yourself to recognize when you're starting to attract storm clouds, you'll be able to enjoy more of your life even with the detours and roadblocks.