Skip to content

Instantly share code, notes, and snippets.

View stralex7's full-sized avatar

Alexey S. stralex7

View GitHub Profile
@stralex7
stralex7 / Installation Guide.md
Last active December 23, 2021 09:56 — forked from hkaraoguz/Installation Guide
How to install Nvidia 470.57.02 Drivers for Ubuntu 20.04 using a run file

The output below is from a host behind a firewall

user@rig04:~$ cat reverse_ssh.sh

#!/bin/bash

COMMAND="ssh -p8022 -N -f -R 0.0.0.0:18022:localhost:22 user1@host1
pgrep -f -x "$COMMAND" > /dev/null 2>&1 || $COMMAND

user1/host1 are in host accessible from the internet, public key authenticaion.

@stralex7
stralex7 / API.txt
Created May 18, 2018 13:40 — forked from ivy/API.txt
Claymore JSON-RPC API documentation (from Claymore v9.6)
EthMan uses raw TCP/IP connections (not HTTP) for remote management and statistics. Optionally, "psw" field is added to requests is the password for remote management is set for miner.
The following commands are available (JSON format):
----------------
REQUEST:
{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}
RESPONSE:
{"result": ["9.3 - ETH", "21", "182724;51;0", "30502;30457;30297;30481;30479;30505", "0;0;0", "off;off;off;off;off;off", "53;71;57;67;61;72;55;70;59;71;61;70", "eth-eu1.nanopool.org:9999", "0;0;0;0"]}
#!/usr/bin/env python3
import socket
import json
import time
import os
import sys
# reset if mh drops below this num
min_hashes=61900

Asus ROG STRIX-GTX1070-O8G-Gaming

Always purge installed drivers before upgrade or re-install

/etc/rc.local

modprobe i2c-i801
modprobe i2c-smbus
modprobe iTCO-wdt
service watchdog start
@stralex7
stralex7 / cerberus.md
Last active July 30, 2021 13:34
CERBERUS-GTX1070TI-A8G ASUS Cerberus GTX 1070 Ti for ether mining using Ubuntu 17.10

Recently I got my hands on this fairly new card at a "decent" price. These notes are mainly for myself, but comments are welcome.

Hardware specs:

  • H81 Pro BTC R2.0
  • Intel(R) Celeron(R) CPU G1840 @ 2.80GHz
  • 4Gb RAM

Update1

I switched to ubuntu 18.04.1 with out any problem, to use lastest stable version of etherminer 0.15 CUDA-9.2 is required. Package names are different for driver version 396 to get the package name use:

@stralex7
stralex7 / emwrapper.py
Last active January 30, 2018 15:38
monitor and restart ethminer due to cuda errors/no responses
#!/usr/bin/python3
import os
import signal
import subprocess
import sys
import time
try:
TIMEOUT_NO_ACTIVITY_SECONDS = int(os.getenv('TIMEOUT_NO_ACTIVITY_SECONDS', 60))