first and foremost is people. i still hang out with my friends who i used to do drugs with, but now i also spend a lot of time with friends who don't use anything at all, and it really helps me to stay clean and sober. i usually only fiend to get high when i'm lonely, and calling up a friend pretty much always takes away the urge.
exercise is also key.