Skip to content

Instantly share code, notes, and snippets.

@bzeron
bzeron / git-note.md
Created December 20, 2019 05:37 — forked from sh7ning/git-note.md
Git使用笔记

Git分支开发工作流

git 配置

  1. git配置:
    git config --global user.name <用户名>
    git config --global user.email <邮箱>
    git config --global push.default simple
    git config --global credential.helper store #不用每次都输入密码
    
@bzeron
bzeron / GethBEHAVE.md
Created July 11, 2022 04:07 — forked from yorickdowne/GethBEHAVE.md
Pruning Geth 1.10.x

Overview

Geth (Go-Ethereum) as of January 2022 takes about 500 GiB of space on a fast/snap sync, and then grows by ~ 10 GiB/week. This will fill a 1TB SSD in ~6 months, to the point where space usage should be brought down again with an offline prune.

Happily, Geth 1.10.x introduces "snapshot offline prune", which brings it back down to about its original size. It takes roughly 4 hours to prune the Geth database, and this has to be done while Geth is not running.

Caveat that while several folx have used offline pruning successfully, there is risk associated with it. The two failure modes we have seen already are:

  • There is 25 GiB or less of free disk space