Doing a tiny little task helps to break the cycle of frustration/depression. Has to be something very small and easy that I cannot fail to achieve.
Put on my ipod and walk! Usually helps to relax me and lift my mood and is good for my body. Or sit on a chair and jog!