i am there in this situation now. I have been here many times before also. The thing that is comforting to me is I know this is temperory, and i will have happier days eventually.
The thing that helps immediately identifying if you are having negative thought patterns. It is cliche but meditation helps a lot.