This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| scavenger_mine_challenge_gist_updater.py | |
| - Busca novo challenge a cada 10 minutos em https://sm.midnight.gd/api/challenge usando curl_cffi | |
| (impersonação de browser chrome110). | |
| - Lê o arquivo atual do Gist, que contém: | |
| { | |
| "challenge_queue": [ {...}, {...}, ... ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # COMANDOS PRINCIPAIS | |
| # ------------------------------------- | |
| # | |
| # Conceder permissão ao script | |
| # chmod +x miner_piz.sh | |
| # | |
| # Instalar tudo e compilar (--threads opcional, padrão 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Sincroniza a lista `challenge_queue` do arquivo padrão (challenges_from_the_last_24_hours.json) | |
| para todos os arquivos `*scavenger-mine-export-*.json` no mesmo diretório. | |
| # Padrão: backups com sufixo `.json.bkp` | |
| python sync_challenges.py | |
| # Manter a extensão original `.json` nos backups | |
| python sync_challenges.py --keep-extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "challenge_queue": [ | |
| { | |
| "challengeId": "**D21C24", | |
| "challengeNumber": 504, | |
| "challengeTotal": 504, | |
| "campaignDay": 21, | |
| "difficulty": "00000FFF", | |
| "status": "available", | |
| "noPreMine": "393ea01cd33a95b1b4b84c39901a67f2fa735fae0dda095096f3dc338c70cf24", |