If you want a truly flat-resistant wheel, look into solid rubber tires. Ride like a tank, but they can't flat.
Snarking aside, carry a spare tube, patch kit, and pump. Replace the tube on the first flat, and you'll have the patch kit if you get another flat. After you accumulate a half-dozen leaky tubes, have a patching day.
And take the flats you've already had as an indication you may want to watch the road a bit more carefully to avoid the trash that'll puncture your tire and tube.