Get up and move around.
Maintain some routine of exercise (I prefer walking).
Eat a healthy diet (I work at a candy company, so this one is challenging for me)
Any kind of pain or fatigue can be debilitating to being productive. But it's a matter of staying aware that a balance is needed. Maintaining a healthy lifestyle will forever pay dividends in how you feel and the work you produce.