I met up with someone for a ride once and his throttle cable snapped a short way into the ride. Since it was a Sunday, there was no hope of finding any bike shops open anywhere. It was a hellishly hot day, but the woman who owned the house right by the intersection came out and offered us the comfort of her living room and suggested that when her boyfriend returned home he might be able to find a spare cable for us since he had several Harley's in the garage. Well, he didn't have a cable that would fit, but he did have a mig welder and after welding on a new cable end from his box of spares, we were back on the road. I think the bike on which the cable broke was a CB350.
Since then, I replace my cables frequently and carry one of the old cables as a spare.