I had a macbook charger and the cable had become frayed due to stress. Rather than spending $70 to buy a new one I decided to pick up a replacement from amazon and attempt to repair the power adapter. It worked! Link to the cable below. Amazon Replacement magsafe cable: amzn.to/2fhJIzE