You ain't an addict if your able to resist temptation and set limitations on how often you partake in something.
And hey at least your not drinking. But if you must here's what I do when sitting and feeling unproductive.
Every 20 or so minutes get up and down 20 pushups. Then situps. Then...