How do i quit smoking FOR GOOD?

I’ve been smoking for over 10 years, and i’ve quit many times. I have gone as long as a year without a ciggarette in one of my attempts. The combination of stress, and being in the same vicinity (around others) who smoke, is what has made me in the past take back up the filthy habit.
Any suggestions for permanently quitting?