前情提要参见: tuna/collection#217
| # Tested On Python3.11.9 + OpenSSL 3.1.4 Oct 2023 | |
| import ssl | |
| SSL_CONTEXT = ssl.create_default_context() | |
| SSL_CONTEXT.set_ciphers('DEFAULT') | |
| SSL_CONTEXT.options |= ssl.OP_NO_SSLv2 | |
| SSL_CONTEXT.options |= ssl.OP_NO_SSLv3 | |
| SSL_CONTEXT.options |= ssl.OP_NO_TLSv1 | |
| SSL_CONTEXT.options |= ssl.OP_NO_TLSv1_1 | |
| SSL_CONTEXT.options |= ssl.OP_NO_COMPRESSION | 
| #!/bin/bash | |
| # Set script to exit on error | |
| set -e | |
| # Enable logging | |
| exec > >(tee -i /var/log/setup-script.log) | |
| exec 2>&1 | |
| echo "Starting script execution..." | 
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "background": "#fbfbfb", | |
| "foreground": "#0077c2", | 
Spice up termux with beautiful themes and productivity plugins to make your life easier!
pkg install zsh git lsd vim
Install Oh-My-Zsh
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ | 
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
| 根据Unicode5.0整理如下: | |
| 1)标准CJK文字 | |
| http://www.unicode.org/Public/UNIDATA/Unihan.html | |
| 2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF | |
| http://www.unicode.org/charts/PDF/UFF00.pdf | |
| 3)CJK部首补充:2E80-2EFF | |
| http://www.unicode.org/charts/PDF/U2E80.pdf | 
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |