We are all different
There is more variety between individual women or men than between women and men as groups. Some of us are good at math and science, and some of us not so much. Most advice you gave is also good for men.
YMMV, but I encourage women to join our field. As an older white male, I often get irked by some of the younger guys, but call them out! I understand that some women (and men, as I loathe confrontation) are hesitant to speak out as they think all of the guys are cavemen.
You can try something like "So you cool with me calling your wife/mother/daughter that?" or "You know you aren't going to get too many dates with that approach". Or even a "HEY, language!". People with healthy egos respect those who stand up for themselves.
And believe it or not, you are soon known for the quality of your work. If your organization does not value you, it may not be because you are a woman, but that they abuse whoever they can. Don't burn your bridges no matter how ticked off you are, just find another gig and then resign. You never know when you might later seek a position in that company. Don't bad-mouth the old gig in public, as too often people misinterpret you as a disgruntled employee.
I can't recall whether the author mentioned it, but network, network, network. This is an area where (I'll be sexist here) women tend to do better than men. One reason I am in my current position is that I've known the hiring manager and a some of my co-workers for over a decade.