Check out this handy USB extension cable, which will make it easy for you to enclose a device that has a Mini-B USB type port. We think this would be most handy when putting a Teensy, FTDI friend, USB LiPo charger, BeagleBone, or any other Mini-B device into a box!
This Mini-B male/female extension cable features a male USB Mini-B plug on one end, and a bulkhead mountable Mini-B female receptacle on the other. The jack half has two mounting 'ears' with 4-40 screws installed, about 17mm apart. The ears are flexible so the holes don't have to be drilled very precisely. The screws can be put on from the back for 'reverse' mounting if the box thickness is a problem. The entire unit is about 12" long from tip to tip (with approx 10" cabling between connectors).
Rated for high-speed USB 2.0 use.