Here's a tip that makes it easier to deal with cravings:

I found that trying to deny that you are having a craving only makes the craving stronger.

What helped me a great deal was to honestly and fully admit, even out loud, "Boy! I really really want a cigarette right now, BUT I'm not going to have one because of all these reasons......."

That is a form of "self-positive-reinforcement."