Chrome Headless Coinhive

Not using coinhive any more, jse is betterĀ¬
leaving this for reference
Save some resources by running the clickforafrica miner in headless mode.
Install chromium-browser then

chromium-browser --headless --disable-gpu --repl https://clickforafrica.org/mine-for-africa/

if errors re. gpu:

chromium-browser --headless --repl https://clickforafrica.org/mine-for-africa/

headless mode – REPL enabled, (Read-Evaluate-Print-Loop, to execute javascript in the DOM via command line).
at the prompt:

miner = null;

Then start the miner with:

miner.start()

And then check it is running with

miner.isRunning()

docs are [gone! coinhive is no more]
for google chrome use google-chrome instead.
refs:
https://0x00sec.org/t/how-to-run-the-coinhive-miner-in-the-command-line-headless/3721
https://askubuntu.com/questions/234663/what-command-should-i-type-to-run-chrome-from-the-terminal
https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line