Skip to content

Instantly share code, notes, and snippets.

@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
@elmostake
elmostake / delta2.sh
Last active December 24, 2019 15:08
Function for getting the delta between your lastBlockCount and the one from the Shelley Explorer (add to .bash_profile)
# Note that it seems like the explorer is load balanced across multiple nodes, as sometimes a call will show that
# you are ahead by a few blocks, but an immediate subsequent call will show you are in sync.
# Add this to your .bash_profile
function delta2() {
# Kudos to @pheelLikeWater for original version of this!
lastBlockHash=`stats | head -n 6 | tail -n 1 | awk '{print $2}'`
lastBlockCount=`stats | head -n 7 | tail -n 1 | awk '{print $2}' | tr -d \"`
shelleyExplorerJson=`curl -X POST -H "Content-Type: application/json" --data '{"query":" query { allBlocks (last: 1) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } totalCount edges { node { id date { slot epoch { id firstBlock { id } lastBlock { id } totalBlocks } } transactions { totalCount edges { node { id block { id date { slot epoch { id firstBlock { id } lastBlock { id }
@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.
@Chaser324
Chaser324 / GitHub-Forking.md
Last active May 2, 2024 05:49
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j