Skip to content

Instantly share code, notes, and snippets.

View minhoryang's full-sized avatar
๐Ÿ˜
Happy Today!

Minho Ryang minhoryang

๐Ÿ˜
Happy Today!
View GitHub Profile
@ayebrian
ayebrian / vmware.md
Last active August 25, 2025 07:39
VMware ESXi / Workstation / ISO Downloads

Download VMware ISOs in this repo

Also I would happy if you visit my site with tech tips!: https://hausmer.com

All license keys and activation files have been removed in accordance with GitHub's Terms of Service.

Only official trial installers are available. Bring your own license (BYOL).

@yorickdowne
yorickdowne / HallOfBlame.md
Last active August 13, 2025 10:31
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 very conservative choice. The smaller 2TB drive should last an Ethereum full node until at least sometime 2026, with [pre-merge history expiry](https://hackmd.io/@hBXHLw_9Qq2va4pRtI4bI

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active August 19, 2025 09:28
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

Since version 2.23, git-blame has a feature to ignore certain commits. This feature is useful to ignore large formatting or apparently unimportant changes.

How to use

  1. Create a revisions list file. The file name is usually .git-blame-ignore-revs
  2. Set the file as a default ignore file for blame by git config blame.ignoreRevsFile .git-blame-ignore-revs

The file format is described in git-fsck's man: https://git-scm.com/docs/git-fsck#Documentation/git-fsck.txt-fsckskipList

@wickedev
wickedev / fzftail.sh
Last active October 24, 2021 15:02
fzf + tail + nl
#!/bin/bash
tail -n +0 $1 \
| nl -ba \
| fzf --multi \
--ansi \
--no-sort \
--reverse \
--tac \
--preview 'sed -n "$(({n}-4)),$(({n}+6))p" '$1' | nl -v $(({n}-4)) -ba' \
@leoh0
leoh0 / README.md
Last active July 18, 2024 06:44
containerd๋ฅผ ์ด์šฉํ•ด์„œ standalone kubelet ์‚ฌ์šฉํ•˜๊ธฐ

standalone-kubelet-with-containerd.md

๊ฐ€๋” kubernetes ๊ฐ™์€๊ฑด ๋„ˆ๋ฌด ๋ฌด๊ฑฐ์›Œ์„œ ๋‹จ์ผ ํ˜ธ์ŠคํŠธ์— docker๋งŒ ๋„์›Œ์„œ ์šด์˜ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ™์€๊ฑธ ๊ณ ๋ฏผ ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ๊ทธ๋ƒฅ docker๋งŒ ๊ฐ€์ง€๊ณ  ์‚ฌ์šฉํ•˜๋ฉด ์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์ฃฝ์—ˆ์„๋•Œ ๊ด€๋ฆฌํ•ด ์ค˜์•ผ ํ•˜๋Š” ๋ถˆํŽธํ•จ๊ณผ ๊ฐ™์ด ๊ธฐ๋Šฅ์„ ๋ณด๋‹ค ๋” ํ•„์š”๋กœ ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ์ด ๋ฐฉ๋ฒ•์„ ์†Œ๊ฐœํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์ด๊ฑด standalone kubelet ์ด๋ผ๊ณ  ๋ถˆ๋ฆฌ๋Š” master ์—†์ด node๋งŒ ๊ด€๋ฆฌํ•ด์ฃผ๋Š” kubelet์„ ์ด์šฉํ•ด์„œ container๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ์ด๊ฑด k8s ์ดˆ๊ธฐ ๋ถ€ํ„ฐ ์›๋ž˜ ์กด์žฌํ–ˆ๋˜ ์ปจ์…‰์ด๋‚˜ ๋งŽ์ด ์•Œ๋ ค์ ธ ์žˆ์ง€ ์•Š์•„์„œ ๋ชจ๋ฅด์‹œ๋Š” ๋ถ„๋“ค์ด ๋งŽ์•„์„œ ์ด๊ธ€์„ ์ž‘์„ฑํ•ด ๋ดค์Šต๋‹ˆ๋‹ค.

์ด ๋ฐฉ๋ฒ•์„ ์ด์šฉํ•˜๋ฉด ์‹ค์ œ master ์—†์ด kubelet ๋งŒ์œผ๋กœ ์„œ๋น„์Šค๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ปจํ…Œ์ด๋„ˆ ์ž๋™ ์žฌ์‹œ์ž‘, port forwarding, resource limit ๋“ฑ ๊ธฐ๋ณธ์ ์ธ kubelet์—์„œ ์ œ๊ณตํ•˜๋Š” ๋‹ค์–‘ํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ ์ปจํ…Œ์ด๋„ˆ๋“ค์„ ๊ด€๋ฆฌ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@ClickerMonkey
ClickerMonkey / types.ts
Last active August 8, 2024 00:25
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]
#!/bin/bash
## This is a setup script for temporary sharing of an internet connection
## Configure the variables at the top of this file, then run:
## sudo ./internet-sharing.sh setup
## And optionally start the DHCP server:
## sudo ./internet-sharing.sh dhcp
## Connect your other computer or LAN to the second network device.
## Dnsmasq will output the IP address(es) of connected clients as they request them.
## Press Ctrl-C to quit dnsmasq when you no longer need DHCP.
@Treeki
Treeki / TurnipPrices.cpp
Last active July 26, 2025 06:27
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
/*
scalaVersion := "2.12.8"
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-Ypartial-unification"
)
libraryDependencies += "org.typelevel" %% "cats-core" % "1.0.0"
libraryDependencies += "org.typelevel" %% "cats-effect" % "1.3.1"
libraryDependencies += "org.typelevel" %% "cats-effect-laws" % "1.3.1" % "test"
*/