If you're tired of dealing with tangled cords and cables on your desk, a spring and magnet can be a powerful combination for keeping them organized.
First, remove the spring from a ballpoint pen (or any other small spring) and wrap it around the cord. Then, get a small, strong neodymium magnet to hold the cord in place.
Not only is this a low-cost DIY solution, but it's also a convenient way to keep your cords organized and easily accessible with the spring allowing you to move the cord around as needed.