Skip to content

Instantly share code, notes, and snippets.

@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
@ilap
ilap / SHELLEY_HOWTO.md
Last active January 17, 2023 22:40
UnOfficial Shelley Config

Introduction

Author:

Pool operators' (with constructive feedbacks, ideas) Tickers, so if you're saturated pls promote them:

  • AAA,
  • ANP,
@ilap
ilap / setup_shelley_monitoring.sh
Last active January 12, 2023 14:03
Shelley monitoring
#!/bin/bash
#---------------------------------------------------------------------
# File: setup_shelley_monitoring.sh
# Created: 2019/10/17
# Creator: ilap
#=====================================================================
# DESCRIPTION:
#
# This script downloads and configures the required files
# for monitoring a Shelley node by using grafana/prometheus.
@bdarnell
bdarnell / README.md
Created September 21, 2015 17:41
Scripts for running multi-node cockroachdb cluster

Run make build in the cockroach repo and copy the binary to ./bin/cockroach (relative to wherever you have downloaded these scripts).

Run init.sh once, then run start.sh 1, start.sh 2, and start.sh 3 in separate terminals. After that, run shell.sh to start a SQL shell.

To wipe everything and start over, kill all the processes started by start.sh and delete the node* directories.

@ohanhi
ohanhi / frp.md
Last active December 23, 2022 13:06
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

def authors(cd) do
#Connect to the database.
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015])
q = case cd do
"create" -> table_create("authors")
"destroy" -> table_drop("authors")
end
|> run(conn)
defp table_action("create"), do: table_create("authors")
defp table_action("destroy"), do: table_drop("authors")
def authors(cd) do
#Connect to the database.
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015])
q = table_action(cd) |> run(conn)