A quick video on how to create a installer for OSX on a USB Drive.
Note: you need access to the Operating System you want to create the installer for i.e yosemite, El Capitan. These are assigned to the Apple ID when they where installed. Your USB Stick has to be 8GB min to get this to work.
Link to Terminal Command you will need: