I don't struggle with it as much anymore, but in the past when the urge has struck, I put an ice-cube on my palm and let it melt. The cold creates an intense pain that doesn't leave any marks. Exercise is another thing that distracts me from the urges nicely.