Skip to content

Instantly share code, notes, and snippets.

View Holewijn's full-sized avatar
😎
Relaxing

Miich94 Holewijn

😎
Relaxing
  • Genemuiden, The Netherlands
View GitHub Profile
@jaydlawrence
jaydlawrence / check_hashrate_reboot.py
Last active June 28, 2019 21:28
Script to check the hashrate of ethereum worker on ethOs and reboot if the hashrate is 0 for 2 runs of this script. This script is for a single GPU, or rather it will only reboot if the overall hashrate reaches 0. It also uses the pushover service to push notifications for when the script triggers a reboot.
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