Dealing with a bad boss can be challenging. Here are some tips that might help you:

1. Talk to your boss about what you need to succeed in terms of direction, feedback, and support. Be polite and focus on your needs. You need to tell the boss exactly what you need from them.

2. Use positive and constructive language when talking to your boss. Let them know how you feel.

3. Try to supply what your boss wants, offer regular status reports, and ask for the tools and information you need.

4. Get clear in your mind about what your boundaries are and get your boss to agree to them.

5. Understand the attitude of your boss. Understanding of your boss’s attitude helps you in dealing with it and you prepare yourself for the outcome in a much better way than the surprise attack.

6. Some of your manager’s bad habits or behaviors may be easily fixed with a slight adjustment on your part.

7. Align your priorities with those of your boss. This can enable you and your boss to work toward the same goals and ideals.

I hope this helps! Let me know if there's anything else I can do for you.