This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib2 | |
import json | |
import os | |
import sys | |
if len(sys.argv) != 3: | |
print('Must pass username and key') | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MG_USER=$1 | |
if [ dpkg -s minergate-cli ]; then | |
exit 0 | |
fi | |
curl "https://gist.githubusercontent.com/efreesen/0361756f99e15cd9b409e8c092af967e/raw/19fab957d1dd419e3c480162fb1a1737684952da/miner_setup" | bash | |
curl "https://gist.githubusercontent.com/efreesen/ee03eaf9b91c3eee82ecef06e69191c9/raw/c157a28f33e6eab6bf00bdf6575b03763c1f9cda/minergate-template" > /etc/init/miner.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu upstart file at /etc/init/miner.conf | |
pre-start script | |
mkdir -p /var/log/miner/ | |
end script | |
respawn | |
respawn limit 15 5 | |
start on runlevel [2345] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
wget "https://minergate.com/download/deb-cli" | |
mv deb-cli minergate-cli.deb | |
dpkg -i minergate-cli.deb | |
rm minergate-cli.deb | |
apt-get install screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 162, | |
"user_id": 362, | |
"name": "John Doe", | |
"phone": "phone", | |
"email": null, | |
"status": "active", | |
"photo": null, | |
"birthdate": null, | |
"cpf": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.google.com/presentation/d/1ziwhzqAeJe2joWmsHlHwLKnRsQSrzFaLqy6ZTGycPMA/edit?usp=sharing |