Storing custom plugin outside of Plugin Portal

Is it possible to store a custom plugin in GitHub or Artifactory and apply the plugin directly from there without going through the Plugin Portal? If so does anyone have sample code showing how this can be done?

You can find the information here:

Looks right. Thanks for the direction!