Skip to content

Instantly share code, notes, and snippets.

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

Delweng jsvisa

🏠
Working from home
View GitHub Profile
@yorickdowne
yorickdowne / HallOfBlame.md
Last active May 28, 2024 07:35
Great and less great SSDs for Ethereum nodes

Overview

Syncing an Ethereum node is largely reliant on IOPS, I/O Per Second. Budget SSDs will struggle to an extent, and some won't be able to sync at all.

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

For size, 4TB comes recommended as of mid 2024. The smaller 2TB drive should last an Ethereum full node until early 2025 or thereabouts, with crystal ball uncertainty. Remy wrote a migration guide to 4TB.

High-level, QLC and DRAMless are far slower than "mainstream" SSDs. QLC has lower endurance as well. Any savings will be gone when the drive fails early and needs to be replaced.

Proposal for a light client friendly log event search data structure

Author: Zsolt Felföldi (zsfelfoldi@ethereum.org)

Note: this is an informal write-up and the exact details of the data structure presented here might need further clarification. If there seems to be interest in this idea and no one finds any major holes in it then I want to write a proper EIP for this.

Here I attempt to solve two problems with our current bloom filter based log event search mechanism. One of them concerns both full and light clients: the bloom filter size is fixed and does not adapt to the increased number of log events per block due to increased gas limit. This leads to too many false positive matches, rendering the whole bloom filter mechanism almost ineffective. The other issue concerns light clients: even if we increase the bloom filter size, using the filters with a light client is only possible if the client syncs up the header chain. Geth light client did that until now but after the merge this practice becomes

@kf106
kf106 / ropsten-peers.txt
Last active November 21, 2022 07:26
List of active Ropsten peers found as of 30.4.2021
// For information on how to set up a Ropsten miner see https://www.linkedin.com/pulse/how-mine-ropsten-testnet-ether-keir-finlow-bates/
// For test Ropsten visit https://moonborrow.com/
// active Ropsten peer nodes found 15 Oct 2021
["enode://05b558e4f6bb2853c80fbadd669e3e6123ad10ca08e43eccb9abcc50180a55486c8fc9f8b36d85033eca3888849920fb9d29981df85d1c3ffbea504848026716@104.248.75.151:8888", "enode://ddc869dab42ee378d9ea8f3872e0d114b2a0450c2b5e533ce899249c2cf88651bb14e7250b60765d333d3419d82c328effecbf56ddfac2cfb9c19b66682b4a09@52.72.11.115:30303", "enode://deb4a2157ec32c1837a2480d6752fc388f2fd6e9d97650c5e74bd1db11de2c2855ea6c4a62630b2292b6bf46ecc06e35a3e12d63bc145d0b810a3d0d4ea59d13@18.181.27.33:30303", "enode://fe9908781f114f1306d494610478dfa8af913e48612697113b1340133be502a4797c25e319b2609e166d77d0a1382124b5bb7b449cf29c390c4067560fc5fdd7@35.153.104.230:30303", "enode://a534ad8959940358d753e6f9155af0ff39de2e300e8bb1780fad53f3fab6757ae4d3b0e499aec14157b0c56fddeb8227405d8c5976318ed84325521ca8acc5f4@54.157.217.
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 30, 2024 17:37
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@Tamal
Tamal / git-ssh-error-fix.sh
Last active May 27, 2024 17:44
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@milesbxf
milesbxf / monzo-alertmanager-config.yaml
Last active May 15, 2024 19:37
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@steven2358
steven2358 / ffmpeg.md
Last active May 27, 2024 19:15
FFmpeg cheat sheet
@wcooley
wcooley / Makefile.dash
Last active August 6, 2021 07:38
Building 3rd Party Sphinx Docs for Dash
# docs/Makefile.dash
include Makefile
PROJECT_NAME = $(shell python ../setup.py --name)
.PHONY: dashdoc
dashdoc:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) -D 'html_theme=epub' $(BUILDDIR)/dashdoc
doc2dash -A -v -n $(PROJECT_NAME) -d $(BUILDDIR)/ -f -I index.html -j $(BUILDDIR)/dashdoc
@echo
@echo "Build finished. The Docset is in $(BUILDDIR)/$(PROJECT_NAME).docset."
@cdpath
cdpath / wechat.json
Last active May 8, 2023 09:47
使用 Huginn 实现微信公众号全文 RSS
{
"schema_version": 1,
"name": "WeChat",
"description": "微信公众号全文 RSS",
"source_url": false,
"guid": "dd67102f09869c2228f8ed903a32d063",
"tag_fg_color": "#333333",
"tag_bg_color": "#66ff66",
"icon": "leaf",
"exported_at": "2019-01-12T10:56:41Z",
From ca8b106738521823707f3567cedb41ca158792a3 Mon Sep 17 00:00:00 2001
From: Alberto Milone <alberto.milone@canonical.com>
Date: Wed, 15 Feb 2017 10:53:42 +0100
Subject: [PATCH 1/1] Add support for Linux 4.10
---
common/inc/nv-mm.h | 9 ++++--
nvidia-drm/nvidia-drm-fence.c | 72 +++++++++++++++++++++++++++++++++++++++++++
nvidia-drm/nvidia-drm-gem.h | 6 ++++
nvidia-drm/nvidia-drm-priv.h | 7 +++++