If you ever need a reference or want to maintain ties to your soon-to-be-former company, this is your play. It doesn’t matter how big of a dick your boss has been or the ways in which you know the company squanders money — suck it up, put in your two weeks notice, keep your mouth shut, and soldier on until the clock expires.
Also: Job Interview Tips From Movies
For help making that happen, there are about a trillion books on the market you can turn to. Of of the more popular being Quitter: Closing The Gab Between Your Day Job & Your Dream Job ($10 Kindle / $13 hardcover @ Amazon.com).