Skip to content

Instantly share code, notes, and snippets.

@ankurk91
ankurk91 / github_gpg_key.md
Last active June 7, 2024 14:31
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@sh7ning
sh7ning / index.html
Last active December 3, 2018 06:18
XHR stream read write example
<script>
var xhr = new XMLHttpRequest();
xhr.open('GET', '/stream');
xhr.seenBytes = 0;
xhr.onreadystatechange = function() {
if(xhr.readyState == 3) {
var newData = xhr.response.substr(xhr.seenBytes);
console.log(newData);
document.body.innerHTML += "new data: " + newData + "<br />";
xhr.seenBytes = xhr.responseText.length;
@yorickdowne
yorickdowne / GethBEHAVE.md
Last active July 22, 2024 16:26
Pruning Geth 1.10.x, 1.11.x, 1.12.x

Note: PBSS in Geth >=1.13.0 removes the need to prune manually.


Old content for reference

Overview

Geth (Go-Ethereum) as of July 2022 takes about 650 GiB of space on a fast/snap sync, and then grows by ~ 14 GiB/week with default cache, ~ 8 GiB/week with more cache.