I have also "squared off" bolt heads with a file (or Dremel), then used a small wrench or vise grips to get them out.
If you have to do maintenance that includes Torx bolts, get Wiha Torx bits. They're not expensive for a set to work on a bike, made in Germany, they seat perfectly, and I've...