First things first: if you smell rotten eggs and you have a gas stove, furnace, or water heater, your immediate job is to stay calm but act fast. Gas companies add a stinky chemical called mercaptan to help you detect leaks.
This is the one time you shouldn’t mess around. Open your windows and doors immediately, don’t flip any light switches (sparks are bad news), and call your gas company from outside. They’ll send someone out for free, and they’re usually very nice about it.
Think of it like a fire drill, but with your nose doing the alarm work. Once the gas company gives the all-clear, you can relax. The smell will vanish in a few minutes with a good breeze.