The most helpful tip I have is from SMART Recovery. When I see something that is causing a craving, I simply visualize a large red stop sign. Then I say the word under my breath. "Stop". Then, once I've recognized and stopped myself from going down that dark path, I change my behavior or activity so the urge, hopefully, won't come up again.