Belcarra's Pi_Zero_Connected project is available on GitHub
The project goal is to automatically set up Networking over USB using a Gadget Device.
The project allows a Pi Zero (as an example) to be used for headless operation with a network connection through a desktop system AND without having to modify the Pi Zero system configuration after booting. Additionally a USB Composite configuration is implemented that includes both a networking protocol (CDC-EEM, ECM, NCM or RNDIS) and Serial over USB (CDC-ACM). This implements a serial console to the Pi.