Our microwave oven died in a peculiar fashion this morning. While cooking, it would turn itself off every few seconds, then come back on and pick up where it left off. I guessed it was the usual failure mode for electronics: electrolytic capacitors. I opened it up and saw there were only four of them. I had those values in stock, swapped them in, and that fixed it!