Steps to install node_exporter
-
Add user for node_exporter
sudo useradd --no-create-home --shell /bin/false node_exporter
| import boto3 | |
| import base64 | |
| import gzip | |
| from io import BytesIO | |
| def download_decompress_and_encode_s3_file(bucket_name, key): | |
| # Initialize a session using Amazon S3 | |
| s3 = boto3.client('s3') | |
| # Download file content into memory |
| SETTLEMENT_ADDRESS = 'bae24162efbd568f89bc7a340798a6118df0189eb9e3f8697bcea27af99f8f79' | |
| async def read_spends(header_hash, node_client): | |
| coin_spends = await node_client.get_block_spends(header_hash) | |
| settlement_spends = [] | |
| for coin_spend in coin_spends: | |
| if coin_spend.coin.puzzle_hash.hex() == SETTLEMENT_ADDRESS: |
I hereby claim:
To claim this, I am signing this object:
| $baseDir = "d:\minecraft-servers" | |
| $backupDir = "$baseDir\backup" | |
| $mapsOutput = "$baseDir\mapcrafter-output" | |
| $awsProfileName = "minecraft-backup-script" | |
| $s3BackupBucketName = "joeharrison-minecraft-backups" | |
| $s3MapsBucketName = "minecraft.joeharrison.com" | |
| $servers = @{} |
| using System.IO; | |
| using System.Text; | |
| //https://gist.github.com/joeharrison714/c9bea7320e5f9f1bdc7ae0fbfedf7987 | |
| internal class CodeWriter | |
| { | |
| private readonly StringBuilder _output; | |
| private int _indents; | |
| public CodeWriter() |