Does getting epilepsy surgery mean that I might be able to apply to be a fireman or a pilot?

Pilot req. For requirements to become a pilot, i would start by looking at the www.Faa.Gov website. For sport pilot requirements, an excellent starting point is www.Sportpilot.Org. For requirements to be in an armed forces branch, each branch has its own website. Remember there are general armed forces medical requirements -http://usmilitary.About.Com/od/joiningthemilitary/a/intmedstandards.Htm.
It depends. To be considered for either would certainly require successful surgery followed by a long seizure free period after treatment. Exemptions are usually considered on a case by case basis.