A third outtake from my September 16 piece:
Some things that helped me survive as a mathematician were:
I was oblivious to the sexism for a long time. (Unfortunately, once you learn what it looks like, it's hard to unlearn.) In particular, it took me a long time to figure out how many colleagues viewed me as part of their personal lives and not their professional lives.
I also learned to document things and save evidence. Don't count on being believed; have proof.