This repo contains a post-commit hook that probabalistically accepts only 1 out of every 4,096 commits, based on whether the commit's hash starts with 3 zeros.
This is the same principle that Bitcoin is based on.
When you're ready to add a commit to this repository, run this helper script:
cp post-commit .git/hooks/
source ./commit-actions.sh
# Add your changes.
git add .
# Commit your changes.
do_commit "$commit_message"
The output of this script should look something like: