Skip to content

Instantly share code, notes, and snippets.

View caseypugh's full-sized avatar
🤡
🤡🤡🤡🤡🤡🤡🤡🤡🤡

CPU caseypugh

🤡
🤡🤡🤡🤡🤡🤡🤡🤡🤡
View GitHub Profile
@caseypugh
caseypugh / refresh-blockchain.sh
Last active March 4, 2021 18:01
Free up space on your DIY helium hotspot
#!/bin/bash
# Download this script to your computer and upload it to your hotspot using scp
# scp /Path/to/refresh-blockchain.sh hotspot_ssh_address:/home/pi
#
# SSH into hotspot, and edit your crontab (sudo crontab -e) and add this:
# 0 8 * * * /home/pi/refresh-blockchain.sh >> /home/pi/refresh-blockchain.log 2>&1
DATA_PATH=/home/pi/miner_data
DATA_BACKUP_PATH=/home/pi/miner_data_bak