Step 1: What You Need
1. A package of Sugru. I chose white to match my power cord.
2. Your frayed power cord/adapter. Mine was just frayed the wires were intact.
If your wires are exposed you can still use this repair. If the wires are cut strip and reconnect before using the Sugru.