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
@minhoryang
minhoryang / The Rules.md
Created June 26, 2024 12:55 — forked from sebmarkbage/The Rules.md
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

@minhoryang
minhoryang / vmware.md
Created February 27, 2024 12:38 — forked from ayebrian/vmware.md
VMware ESXI 8 / VCSA 8/ vCenter 8 / Workstation 17 8 license key 2024

vCenter Server 8 Standard

Key Tested
4F282-0MLD2-M8869-T89G0-CF240
0F41K-0MJ4H-M88U1-0C3N0-0A214

ESXi 8

Key Tested
4V492-44210-48830-931GK-2PRJ4
vSphere 6 Enterprise Plus:
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
vSphere with Operations Management 6 Enterprise:
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
#!/usr/bin/python3
import time
import os
from watchdog.observers import Observer
from watchdog.events import *
CMD_MOUNT = "modprobe g_mass_storage file=/piusb.bin stall=0 ro=1"
CMD_UNMOUNT = "modprobe -r g_mass_storage"
CMD_SYNC = "sync"
@minhoryang
minhoryang / 0x253D21783B878A6A372F14276D5F43185A16B55B.asc
Created August 30, 2023 15:40
UbuCon Korea 2023 - Keysigning Party for 0x253D21783B878A6A372F14276D5F43185A16B55B
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
- -----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFeklegBEACTZjHIVkAHJwq1gfoVb4SwEOg/jiGkZQXoiSav9c7596wHGraf
8283Bmm0VQsN53xb96z7HgU8Ytj6N3yhVRBTLCHW3Szf8kHCuH0//8B3NMdo9CNY
0/sTIdIGO72vqxJ2oQv2HJ9yHy01D7opVGOAAEGLipgnC+8FotZqtjeVxArMFAcp
HoDvXXz/eeFyjf2r4TwWo559eqPLhCSRL9aY1n09QaAo6vfX8Q6RrRNpa7phnfwU
W1Y7RV3y+ZIo/AqBit8pFcGqNhyebGl9E7JcprkRwHpyJfoKuD0o+ImisS1EsvH1
minhoryang@minhoui-MacBookPro-2 friend-tunnel2 % dig @168.126.63.1 ipfs.io
; <<>> DiG 9.10.6 <<>> @168.126.63.1 ipfs.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50999
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
@minhoryang
minhoryang / sortkey_natural.py
Created December 13, 2022 13:21
sortkey_natural natual/human sort
def sortkey_natural(s):
return tuple(
int(part) if re.match(r'[0-9]+$', part) else part
for part in re.split(r'([0-9]+)', s)
)
@minhoryang
minhoryang / openpgp.md
Created November 18, 2022 08:06
openpgp.md

$argon2id$v=19$m=64,t=512,p=2$+VsBJhNGCtfOs56qfs0qtA$vEIG1tCy2U9s1G3LzZj27w

#!/usr/bin/env bash
{ set +x; } 2>/dev/null
IFS=$'\n'
set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles
set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive
set "$@" ~/git # store on github/etc :)
set "$@" ~/node_modules
set "$@" ~/Applications # install apps with brew cask
@minhoryang
minhoryang / PHP_2019.md
Created December 1, 2019 08:38
FACE PALM...

PHP @ 2019~

declare(strict_operators=1); declare(strict_types=1); ini_set('display_errors', "1"); error_reporting(E_STRICT); or E_ALL

PHP Version?

Package manager

composer