Skip to content

Instantly share code, notes, and snippets.

@fogmoon
fogmoon / ity-bity-living-space.md
Created September 5, 2022 18:06
Ethereum node on 1TB SSD

Overview

As of August 2022, a 1TB SSD is getting tight to run an Ethereum node in. The recommendation now is for 2TB of space. I wanted to see what it takes to still fit into 1TB.

EIP-4844 will increase space need by another 200 GiB or so, which may make 1TB setups plain not feasible. This is a 2023 discussion however.

Options

  • Geth with offline prune every 2-3 months ... this would be a stop-gap, as offline prune takes the node down, including any validators on it
  • Future Geth without prune ... this might work well.
@fogmoon
fogmoon / README.md
Created September 5, 2022 18:00 — forked from yorickdowne/README.md
Verify a public GPG signature - example Lighthouse

Eh?

So a FOSS project might have signed releases with a GPG sig. How do you verify it on a Linux machine?

Example sigp/lighthouse, but same idea for any project.

Install gpg: sudo apt install gpg

Grab their PGP key ID from their download page and gpg --keyserver pgp.mit.edu --recv THEIRKEYID and wait

@fogmoon
fogmoon / zip_file_format
Created August 3, 2022 15:52 — forked from freecnjet/zip_file_format
Zip file format.
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#pragma warning(disable:4996)
/************************************************************************/
/* Zip file struct */
/* */
@fogmoon
fogmoon / css triangle tooltip
Created July 26, 2022 14:35 — forked from Quinten/css triangle tooltip
tooltip triangle on the top of an element in css
#element:before {
content: "";
position: absolute;
width: 0;
height: 0;
border-left: 16px solid transparent;
border-right: 16px solid transparent;
border-bottom: 16px solid #fff;
top: -15px;
left: 27px;

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@fogmoon
fogmoon / README.md
Created February 24, 2022 15:41 — forked from tpitale/README.md
Sublime Text plugin to create a simple timestamp
  1. Go to Tools > New Plugin
  2. Paste timestamp.py contents and save in User as timestamp.py
  3. Open Preferences > Key Bindings - User (or Default, your call)
  4. Paste keybindings.json, or add a line to your keybindings
  5. Customize the keyboard shortcut to your liking and save
@fogmoon
fogmoon / supervisor.conf
Created February 22, 2022 08:49 — forked from tsabat/supervisor.conf
Sample supervisor config file
; Sample supervisor config file.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default
@fogmoon
fogmoon / split-pull-requests.md
Created January 7, 2022 06:51 — forked from loilo/split-pull-requests.md
Split a large pull request into two
@fogmoon
fogmoon / Rinkeby.md
Created August 25, 2021 05:39 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@fogmoon
fogmoon / README.md
Created November 7, 2020 06:06 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)