Dealing with a talentless narcissistic manager or a dipshit CEO? A talentless piece of hack who doesn't know anything about technology but is somehow calling the shots ?
0. Boundary setting doesn't work with these losers because they don't respect them, so you will have to adopt devious tactics. Running away is a cowardly act. Learn how to spot them and their co-dependent friends. I would highly recommend the book Cracking the Psychopath Code and works by Sam Vaknin.
1. Hack their computer! This way you can leverage their insecurities and exploit them. They probably have troubles at home. Just borrow their phone and install spy tools, best 50$ ever! Even better if you can hack their bank accounts and give them a headache.
2. Always make them look good but bad mouth about them all across the board. Firing a narcissist takes time. About 2 years if you do this diligently. Take care not to badmouth it to the narcissist's allies.
3. Adopt the narcissistic's official ideology whatever it may be. This is the most painful thing and your code will probably look stupid.
4. Always work diligently so that you become a valuable asset to the firm and let other managers/startups know. You should become the army general that dethrones the king. They are plenty of female narcissists as well and it is highly improbable for a guy to take them down. This is one place where you might need at least one female ally to take them down if you are a guy. If you are a woman then ... all the best! Not all women are empathic monks are they?
5. Always remember ... they don't really care about you or your friends. You are an extra in their drama.
6. Develop a thick skin when they throw temper tantrums ... work on your submissive poker face.
7. Narcissists are paranoid, to put it mildly, so you have to challenge them a few times truthfully so that they think you are being real with them.
8. Read a book on dealing with pets because Narcissists respond to reward and punishment like infants and pets. Set boundaries by disguising them as compliments and appeal to their selfishness. Give the narcissist multiple options that you control.
9. If you have done all these steps and won, congratulations you are now a Narcissist 2.0 in your firm!