Skip to content

Instantly share code, notes, and snippets.

@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 / The_Hitchhikers_Guide_To_The_Shelley_Chapter_Three.md
Last active January 1, 2024 07:14
The Hitchhikers Guide To The Shelley - Chapter 3 - The Staking

The Hitchhiker's Guide To The Shelley - Chapter 3 - The Staking

This guide's chapter targets the pool operators for getting their head around of Shelley staking. To fully understand the staking mechanism we need to define and interpret the following key concepts:

Keys, Addresses and Certifications

@ilap
ilap / shelley_staking_ledger_addr_gen.md
Last active November 20, 2023 17:30
Extracting Pool Staking keys from Ledger wallet

Introduction for Ledger wallet based addresses

DISCLAIMER: NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK

UPDATED: 16:51pm AEST 09/Aug/2020

There are two keypairs that are required to register a pool:

  1. reward account (costs and rewards) and
  2. owner stake (pledge) keypair.
@ilap
ilap / CardanoPoolRankinginDaedalus.md
Last active May 22, 2023 08:22
Cardano Pool Ranking in Daedalus

Cardano Pool Ranking in Daedalus

DISCLAIMER: The following example is based on the Chapter 4.3 and 5.6 in latest design spec and the Ranking Specification. But it seems that the ranking mechanism specified in the Design Specification, and explained below, is not fully implemented and/or enabled or I missed some of the details of the spec (more realistic assumption). Also, I have not checked what is the difference between the design doc and the current implementation of the haskell code to check if there is any difference, or I misinterpreted some of the both sources (design doc, haskell code). Anyway, I will check the code when I have some spare time.

UPDATED 09/23/2020

Layman explanation

The pool ranking in wallet is based on the stake the user intend to delegate and the expected `

@ilap
ilap / plot_rss.md
Last active April 27, 2023 00:43
Plot RSS with and without cost

Plot RSS with and without cost

#!/usr/bin/env python3

import math

import matplotlib.pyplot as plt
@ilap
ilap / byron_recovery.md
Last active February 14, 2023 09:16
ByronRevovery

Explanation

USE EVERYTHING BELOW AT YOUR OWN RISKS!

A Cardano community member has lost one word of his the 12-words menomic/"recovery phrase", and he would like to recover his wallet from these 11 words.

It is be possible based on the following assumptions:

  • he knows the address the ADA is stored (he knows)
  • the order of the 11 words is correct
  • if it's not correct then it's would need around 11! * 1550 = 60bn tries i.e. 1700 years:(.
@ilap
ilap / epoch_rewards.md
Last active February 9, 2023 14:43
Epoch Rewards

Zsh script

#!/usr/bin/env zsh
# 
# usage:
# epoch_rewards.sh {317..390}
# or
# epoch_rewards.sh 390
@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.
@ilap
ilap / shelley_staking_gen.md
Last active November 24, 2022 03:01
Extracting Pool Staking keys from Daedalus/Yoroi wallet

Intorduction

DISCLAIMER: NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK

UPDATED: 14:08am AEST 29/Sept/2020, The IDX was incorrectly used. Fixed now

There are two keypairs that are required to register a pool:

  1. reward account (costs and rewards) and
  2. owner stake (pledge) keypair.