Skip to content

Instantly share code, notes, and snippets.

@r2DoesInc
r2DoesInc / check_hashrate_reboot.py
Created February 24, 2018 04:32 — 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. 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
@r2DoesInc
r2DoesInc / check_hashrate_reboot.py
Last active February 27, 2018 23:29 — forked from jaydlawrence/check_hashrate_reboot.py
Script to check the hashrate of ethereum worker on ethOs and reboot if the hashrate is below the minimum for 2 runs of this script. This script is for any amount of gpus, or rather it will only reboot if the overall hashrate fallen below the specified hashrate. It also uses the pushover service to push notifications for when the script triggers …
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
@r2DoesInc
r2DoesInc / _service.md
Created October 6, 2015 04:10 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)