Skip to content

Instantly share code, notes, and snippets.

View wbhinton's full-sized avatar

Weston Hinton wbhinton

View GitHub Profile
@wbhinton
wbhinton / check_hashrate_reboot.py
Last active January 5, 2018 02:48 — forked from jaydlawrence/check_hashrate_reboot.py
Script to check the hashrate of ethereum worker on ethOs and reboot if the hashrate is 0 for 2 runs of this script and there is a valid internet connection. The script pings google.com to check for a valid internet connection before executing the hashrate check. This script is for a single GPU, or rather it will only reboot if the overall hashra…
import subprocess
import os
import re
import sys
import argparse
import httplib, urllib
import time
"""
# place this file at /home/ethos/check_hash_reboot.py