Skip to content

Instantly share code, notes, and snippets.

View gat786's full-sized avatar
🏠
Working from home

Ganesh Tiwari gat786

🏠
Working from home
View GitHub Profile
from dotenv import load_dotenv
import logging
load_dotenv()
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s [%(levelname)s] %(filename)s:%(lineno)d - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
alias k=kubectl
alias g=gcloud
alias gssh="gcloud compute ssh"
alias gal="gcloud auth login"
alias gaad="gcloud auth application-default login"
alias gcil="gcloud compute instances list"
alias gccl="gcloud container clusters list"
alias gccg="gcloud container clusters get-credentials"
@yorickdowne
yorickdowne / HallOfBlame.md
Last active October 29, 2025 21:58
Great and less great SSDs for Ethereum nodes

Overview

Syncing an Ethereum node is largely reliant on latency and IOPS, I/O Per Second, of the storage. Budget SSDs will struggle to an extent, and some won't be able to sync at all. IOPS can roughly be used as proxy of / predictor for latency. Measuring latency directly is arguably better.

This document aims to snapshot some known good and known bad models.

The drive lists are ordered by interface and then by capacity and alphabetically by vendor name, not by preference. The lists are not exhaustive at all. @mwpastore linked a filterable spreadsheet in comments that has a far greater variety of drives and their characteristics. Filter it by DRAM yes, NAND Type TLC, Form Factor M.2, and desired capacity.

For size, 4TB is a conservative choice which also supports a Fusaka "supernode". The smaller 2TB drive should last an Ethereum full node until at least sometime 2026, with [pre-merge history expiry](http

@r1walz
r1walz / _experiment.md
Last active May 5, 2020 18:33
A quantum experiment to challenge our classical understandings!

A Quantum Experiment

Here is an experiment that can't be described by our natural (classical)
senses!

Suppose we have an experiment setup consisting of a photon source, a beam
splitter (which was once implemented using a half-silvered mirror), and a
pair of photon detectors. Have a look at the figure!

initial setup

@rdebath
rdebath / README
Last active September 12, 2025 13:25
Original brainfuck distribution by Urban Müller
This archive contains the following programs:
bfc The compiler for the 'brainfuck' language (240 bytes!)
bfc.asm Source for the compiler
bfi The interpreter for the 'brainfuck' language
bfi.c Source for the interpreter (portable)
src/ Some example programs in 'brainfuck'
src/atoi.b Reads a number from stdin
src/div10.b Divides the number under the pointer by 10
src/hello.b The ubiquitous "Hello World!"