Skip to content

Instantly share code, notes, and snippets.

@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.
@ilap
ilap / jc.env
Last active October 17, 2019 10:48
JC
#
# Install: Add to the profile
#
# Usage: jc stake-get
#
alias jc='_() {
if [ -z "$*" ]
then
echo '\''usage: jc [Rest commands]
- stake get: Shows the current delegation info

Keybase proof

I hereby claim:

  • I am ilap on github.
  • I am ilap (https://keybase.io/ilap) on keybase.
  • I have a public key ASDiVDzi9NTlM-daMMe8wYkGarcITtk01vpk1KQ6wKWw2go

To claim this, I am signing this object:

@ilap
ilap / byron_yoroi_address_migration_to_shelley_v3.sh
Last active December 15, 2019 21:55
Byron's Yoroi address migration to Shelley v3 address.
#!/bin/bash
# Get the spending key of your Yoroi address for signing the spending.
# At repl.it/repls/IndolentWarmheartedDehardwarization
# FORK IT FIRST!!!!!!!!!!!
# And replace the
# MNEMONICS="your mnemonics" with yours and then
# from `console.log(address.to_base58());``
# to `console.log(key_prv.to_hex());`
KEY=""
@ilap
ilap / grafana_telegram_bot.md
Last active March 24, 2024 14:31
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
@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 / The_Hitchhikers_Guide_To_The_Shelley_Chapter_One.md
Last active July 4, 2021 18:04
The Hitchhikers Guide To The Shelley - Chapter 1 - The Network
@ilap
ilap / The_Hitchhikers_Guide_To_The_Shelley_Chapter_Two.md
Last active July 4, 2021 18:04
The Hitchhikers Guide To The Shelley - Chapter 2 - The Lock, Stock And Two Smoking Barrel

The Hitchhikers Guide To The Shelley - Chapter 2 - The Lock, Stock And Two Smoking Barrel

This chapters covers the information how the nodes are communicating to each other in the underlying P2P network.

The Lock - The kyklos the Tornado's gossips

In jormungandr each node maintains a list of all available (reachable/unreachable) nodes (neighbours) of the overlay, from which it selects:

@ilap
ilap / shelley_config.md
Last active January 30, 2020 00:08
Jormungandr Config Explanation
# P2P Section explanation
p2p:
  # This is the node's `identifier` in the Poldercast topology. This should be unique and 
  # deterministic (which is not the case in jormungandr) in the poldercast network, and
  # it's highly recommended to be set, because a random `id` is generated on every node restart otherwise.
  # So, we introduced a free sybil attack against to the Poldercast's nodes in default (if it's not set).
  # It simply means that the number of nodes (node ids /w address) in the poldercast increasing by every node's restart
  # and just forgotten very slowly. Therefore, currently there are ~80K node entries in the topology, 
  # which can be one of the reasons the nodes block/slow sometimes.
@ilap
ilap / shelley_ptn.md
Last active May 28, 2020 06:36
Shelley PTN

Install & Config Shelley's Haskell Private Testnet

Install prerequisites

$ curl -sSL https://get.haskellstack.org/ | sh
...

$ sudo apt install pkg-config libsystemd-dev libtinfo-dev
...