Skip to content

Instantly share code, notes, and snippets.

uint8_t expected[]{
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // template id
0x00, // future template
0x00, 0x00, 0x00, 0x30, // version
0x02, 0x00, 0x00, 0x00, // coinbase tx version
0x05, 0x04, // coinbase_prefix len // TODO: Check with the Rust Stratum impl for a off-by-one bug
0x03, 0x01, 0x21, 0x00, // coinbase_prefix
0xff, 0xff, 0xff, 0xff, // coinbase_tx_input_sequence
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // coinbase_tx_value remaining
0x00, 0x00, 0x00, 0x00, // cointbase_tx_outputs count
@ccdle12
ccdle12 / Grin-Mimble-Wimble-Notes.md
Last active August 5, 2019 13:21
Notes on the Grin Mimble Wimble Project

Grin

Project Structure

  • src: The entry point of the daemon, also has the commandline interface binaries.
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── Cargo.lock
├── Cargo.toml
@ccdle12
ccdle12 / Vim-Cheat-Sheet.md
Last active August 5, 2019 11:19
A Cheat Sheet on Vim Commands

VIM

VIM Cheat Sheet which may include some NERDTREE shortcuts, will ensure that NT is identified before the command is explained.

Opening and Closing Files

Open file in a new tab

Highlight the file:

@ccdle12
ccdle12 / ELK-Cheat-Sheet.md
Last active March 5, 2021 02:59
Cheat Sheet for using the ELK stack for logging in MicroServices.

ELK

Elastic Search, Logstash, Kibana

A tech stack used for logging.

Log Stash Setup

Standard Input for Logstash

@ccdle12
ccdle12 / Docker-Compose-Best-Practice.md
Last active August 21, 2019 10:35
Best Practice - "Coding Convention" for Docker-Compose