How to correct your mistakes again and again?

I made a huge mistake today and I have done mistakes in the past as well and I don't know what to do. I feel so ashamed of myself right now that I can't even face the people against which I committed those mistakes. My head's spinning and I am unable to process and think. I just need an advise from someone that what I can do at this point of time.
How to correct your mistakes again and again?
Post Opinion