Skip to content

Instantly share code, notes, and snippets.

View geoboom's full-sized avatar

geoboom

View GitHub Profile
@geoboom
geoboom / tmux.conf
Created February 23, 2020 10:23 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@geoboom
geoboom / sgtopo.json
Created June 6, 2020 14:41 — forked from atwj/sgtopo.json
Singapore topoJSON file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@geoboom
geoboom / multiple_ssh_setting.md
Created June 28, 2020 18:58 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"

Bitcoin Week 2

Question: How do blocks commit to witness data?

Witness in Bitcoin transaction refers to contents of signature scripts which prove the authenticity of a transaction. Blocks commit to witness data via putting the witness commitment into an output of the coinbase transaction.

  • Witness commitment = combined hash of witness root hash and witness reserved value.

  • Witness root hash = merkle root of witness txids (wtxids) of all transactions in the block.