I needed to power something from a USB battery, so I grabbed a "Dollar Store" USB cable and cut off the end. Usually, I have found the wires have some color code that allows you to make a reasonable guess at what's what – not that you should ever trust it without checking.
This picture is about 10× more vibrant than in real life. So helpful!
This picture is about 10× more vibrant than in real life. So helpful!