Download all the other files in this gist to /usr/bin. You also want to either copy or symlink cjdroute into /usr/bin as well, with EITHER of the following commands, but not both:
sudo cp <full path to cjdroute> /usr/bin
sudo ln -s <full path to cjdroute> /usr/bin/cjdroute
Replace the bracketed sections with the actual path, of course. There should be no brackets in the commands you actually use. Unless you have really weird folder names.
To create an initial configuration with default peers, run:
sudo cjconf-make
sudo cjconf-add-default
Creates a new config file at /etc/cjdroute.conf if one does not exist yet.
Removes the file /etc/cjdroute.conf if it exists. Full wipe, nothing left.
See your current configuration as pretty-printed JSON. Strips out comments.
Interactive peer list configuration. Called with no arguments, it interactively edits /etc/cjdroute.conf. Called with one, it uses that as a filename for a conf file to mess with, again, interactively.
Call it with two arguments, and it creates a merge of all the peers in both of them, and pipes the JSON result to stdout. See source code of cjconf-add-default for an example of how this is used.
Merges /etc/cjdroute.conf with /etc/cjdroute.conf.default with cjconf-add, and save the result back into /etc/cjdroute.conf.