Don't leave your stray cords lying around. Unplug your stuff once you're done with it, and constantly check to see if your pet is chewing through something. I'm being serious here; if it chews through something that is plugged in, it's going to electrocute itself.
sacrifice it
kill it
Cover the cords in semen a liquid he/she hates. Try this: make it lick some vinegar and something sour, like a lemon or a lime and cover your cords with it.
Toothpaste and orange juice will work as a substitute
so will semen