Skip to content

Instantly share code, notes, and snippets.

@f-r00t
f-r00t / automine.sh
Created October 21, 2018 17:37
Script that automatically starts mining cryptocurrency when you go AFK
# Set time in milliseconds to wait before turning on miner.
# Change the "5" to a value to set in minutes.
# Example 1: 1 minute
# IDLE_TIME=$((1*60*1000))
# Example 2: 500 milliseconds
# IDLE_TIME=$((500)) or IDLE_TIME=500
IDLE_TIME=$((5*60*1000))