A Simple Utility to Expose Shell Commands as an HTTP API

A Simple Utility to Expose Shell Commands as an HTTP API

I lost most of this original post due to datacenter outage at my cheap VPS provider (https://buyvm.net/ - they are pretty good cause they are pretty cheap).  Since I don't want to forget things and it may be useful to some, here is a link to the github project for this:

https://github.com/leonowski/go-shell-api-docker

Basically:  Build this thing, run it in Docker, and copy the binaries out.  Great for making small utilities that run in shell but called through HTTP.

Good usage example:  as a WOL interface that lives on your router.  Instead of having to remember how to send a WOL packet, just do something like a curl command.