Skip to content

Instantly share code, notes, and snippets.

@msfjarvis
msfjarvis / mullvad-vpn-speedtest-suite.md
Created January 9, 2019 14:28
Collection of bash hackery to determine which Mullvad WireGuard server is the lowest latency from your location
  • Grab all your wireguard configs from Mullvad and dump them in a folder. For this test, this folder is ~/wireguard/.
  • Add the following function to generate a list of all servers you have configs for
lswg ()  { 
    ls ~/wireguard/ | cut -d '-' -f 2 | sed 's/\.conf//'
}
  • Ping each server 10 times to determine latency.
lswg | xargs -I {} ping -c 10 {}-wireguard.mullvad.net | tee mullvadwgstats
@perfecto25
perfecto25 / resticheat.md
Last active March 3, 2024 12:34
Restic cheatsheet

Restic backup application - commands cheatsheet

Installation & config

  1. add Retic repo
  2. yum install restic

add a Restic credential file to root

vim /root/.restic
@wardbekker
wardbekker / dashboard.json
Created June 11, 2020 19:34
Loki Nginx Web Analytics Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@yorickdowne
yorickdowne / HallOfBlame.md
Last active July 4, 2024 05:03
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.

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 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.

Multiple Rocket Pool nodes on a single computer

This guide will teach you how to run more than one Rocket Pool node on the same computer using Docker. The nodes will share an existing EL-CL client combination (unless you're using it to run a Testnet node on the same computer), so this solution is very lightweight and allows running many nodes at once. But before we start, let me tell you when:

You shouldn't use this guide...

  • If you just want to run multiple Minipools on the same node. Rocket Pool can already do that.
  • If you're using native mode. Sorry, but this guide relies on Docker magic.
  • To run your fallback node on the same computer as your primary node. You won't get any hardware redundancy this way, and running two full EL+CL client pairs on one computer doubles some of the hardware requirements. Talk with with me ([object Object] on the Rocket Pool Discord) before attempting this.

Risks when sharing a computer with friends / family members