This handy USB extension cable will make it easy for you to enclose a device that has a micro-B type port. We think this would be most handy when putting an Arduino Leonardo or Raspberry Pi in a box.
The jack half has two mounting 'ears' with M3 screws installed, ~1.1" / ~29mm apart. Can be used with box walls 0.125" to 0.25" wide. Depending on your usage you may want shorter or longer screws, feel free to experiment! Entire cable is ~310mm / ~12" long.