Stuck at the electric fence in Vermilion City Gym (Kanto, Generations I/III/VII)? The solution is embarrassingly simple:
That's it. Any Pokémon in your party that knows HM01 Cut can clear the path. No puzzle, no switch, no key. Just the HM move.
Keep a "HM mule" (Bidoof, Tropius, Zigzagoon, etc.) with Cut, Surf, Strength, Rock Smash, Fly, Waterfall, Dive. Saves party slots for battle-ready 'mons.
Next time you see sparking wires in a Pokémon gym: Cut. Always Cut.