This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Print weekly statistics on a git repository. | |
echo Usage: weekly_report.sh path_to_git_project iso_week_number year | |
gitpath=$1 | |
week=$2 | |
year=$3 | |
echo Statistics for git project $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import subprocess | |
tip = "00000000000000002b3ca56c3fdef9a74b8758bc7da5d9c9aecd79ed922a3692" | |
FORK_HEIGHT = 679555 | |
def print_chain(tip_hash: str, min_height: int = FORK_HEIGHT): | |
"""Print block information starting at a given chain tip and going | |
backward up to (and including) the block with height min_height""" |