Skip to content

Instantly share code, notes, and snippets.

AWSTemplateFormatVersion: 2010-09-09
Parameters:
Environment:
Type: String
Default: Production
Description: The name of the enviornment this cluster is being deployed to.
EmrVersion:
Type: String
Default: emr-5.29.0
@michaeljfazio
michaeljfazio / generate-peers.sh
Created February 5, 2020 18:03
Generate Peers List
#!/bin/bash
function extract()
{
while read line
do
arr=( $(echo $line | tr ';' ' ') )
addr=${arr[15]::-1}
ip=$(echo $addr | cut -d: -f1)
port=$(echo $addr | cut -d: -f2)
@michaeljfazio
michaeljfazio / peers.yaml
Last active February 5, 2020 17:49
Cardano Shelly Network Peers 06/02/2020
- address: "/ip4/54.85.152.129/tcp/3000"
id: "000000000000000000000000000000000000000000000010"
- address: "/ip4/89.162.97.131/tcp/9003"
id: "000000000000000000000000000000000000001313139003"
- address: "/ip4/89.162.97.131/tcp/9004"
id: "000000000000000000000000000000000000001313139004"
- address: "/ip4/89.162.89.137/tcp/9005"
id: "000000000000000000000000000000000000001313139005"
- address: "/ip4/89.162.89.137/tcp/9006"
id: "000000000000000000000000000000000000001313139006"
@michaeljfazio
michaeljfazio / peers.json
Last active January 3, 2020 14:32
Cardano Stake Pool Trusted Peers
[
{
"address": "/ip4/13.56.0.226/tcp/3000",
"id": "7ddf203c86a012e8863ef19d96aabba23d2445c492d86267"
},
{
"address": "/ip4/54.183.149.167/tcp/3000",
"id": "df02383863ae5e14fea5d51a092585da34e689a73f704613"
},
{
@michaeljfazio
michaeljfazio / jormon.sh
Last active February 23, 2020 20:52
Jormungandr Node Monitor
#!/bin/bash
#
# Author: Michael Fazio (sandstone.io)
#
# This script monitors a Jormungandr node for "liveness" and executes a shutdown if the node is determined
# to be "stuck". A node is "stuck" if the time elapsed since last block exceeds the sync tolerance
# threshold. The script does NOT perform a restart on the Jormungandr node. Instead we rely on process
# managers such as systemd to perform restarts.
POLLING_INTERVAL_SECONDS=30