This is a customizable openscad script that lets you create a barbed adapter between a (water) pipe and a hose. The inside of the pipe adapter is a little bit wedge shaped so that it clings better to the pipe.