The number one thing you can do to keep yourself sane in a stressful work environment (whatever it's caused by--rounds of layoffs, long hours, disinterest in the work, etc.) is to cultivate interests and relationships outside of the workplace. This is a great way to create a boundary for yourself and to relieve stress so that the negativity you experience at work does not become corrosive.
Perhaps you could volunteer for a cause that's important to you or at an agency or organization that appeals to you. You could also join a club, get involved in a sport, find a creative outlet or take a class. This would give you something to look forward to after work and make you feel more resilient and positive about your life as a whole, which helps put work in perspective and makes you realize there is far more to your life than your cubicle.
Another helpful tip: Get out a little! Make a point to physically leave the office once a day, if possible. People often don't realize how much toxicity they can absorb in the office because they have become so used to the culture in which they are immersed, with all of its pettiness and power plays or hang-dog faces and hushed conspiratorial voices. It's only by being in a different environment that they can "detoxify." So remove yourself from the premises for 30 minutes or an hour to go for a walk, read a book, have lunch, listen to music or go to a nearby café and people-watch. Just do something that feels relaxing and that allows you to recharge your battery so that you have more energy to face whatever is waiting for you when you return.
Click here for our Chicks' Pick on how to begin the search for a new hobby by taking a class.