Can you guys give me some advice and help on how to learn my lesson and stop making bad decisions?

I really need some advice and tips on how you guys cope with urges or pressure or addictions because I really want to become a better person and stop screwing up.