Skip to content

Instantly share code, notes, and snippets.

View soomtong's full-sized avatar
๐Ÿ˜‡

YoungTaek soomtong

๐Ÿ˜‡
View GitHub Profile
@soomtong
soomtong / nodejs-on-exit.js
Created May 12, 2023 14:14 — forked from hyrious/nodejs-on-exit.js
how to do something before exit in NodeJS
// only works when there is no task running
// because we have a server always listening port, this handler will NEVER execute
process.on("beforeExit", (code) => {
console.log("Process beforeExit event with code: ", code);
});
// only works when the process normally exits
// on windows, ctrl-c will not trigger this handler (it is unnormal)
// unless you listen on 'SIGINT'
process.on("exit", (code) => {
@soomtong
soomtong / gcp-global-lb-multi-region-cr-ce.sh
Created April 12, 2024 04:26 — forked from mikesparr/gcp-global-lb-multi-region-cr-ce.sh
Demonstrating how you can deploy Cloud Run (serverless) or Compute Engine instance groups across regions and balance with global load balancer
#!/usr/bin/env bash
#####################################################################
# REFERENCES
# - https://cloud.google.com/run/docs/multiple-regions
# - https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups
# - https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-compute
# - https://cloud.google.com/load-balancing/docs/backend-service#named_ports
#####################################################################
@soomtong
soomtong / Shell_Keybindings.md
Created April 22, 2025 12:39 — forked from 2KAbhishek/Shell_Keybindings.md
Keyboard shortcuts for bash/zsh

Shell Keybindings

Navigation ๐Ÿš€

Keybinding Action
Alt + f/b Move cursor to previous/next word
Ctrl + a/e Move cursor to beginning/end of command
Ctrl + xx Toggle between the start of line and current cursor position
@soomtong
soomtong / SKILL.md
Created March 1, 2026 06:41 — forked from BumgeunSong/SKILL.md
crig-concept-learning
name crig-concept-learning
description Helps build deep understanding of any concept by scaffolding its structure (rigging) and crystallizing it into a seed sentence. Use when learning something new, feeling stuck while understanding a concept, or wanting to truly own an idea. Triggered by phrases like "์ดํ•ดํ•˜๊ณ  ์‹ถ์–ด", "๊ทธ๋ ค์ง€์ง€ ์•Š์•„", "์™œ ํ•„์š”ํ•ด?", "๋‚ด ๊ฒƒ์œผ๋กœ ๋งŒ๋“ค๊ณ  ์‹ถ์–ด", "์ •๋ฆฌํ•ด๋ด", "ํ•ต์‹ฌ์ด ๋ญ์•ผ?".

Crig (Crystal Rigging)

์”จ์•—: Crig์€ ๊ฐœ๋…์˜ ๊ณจ๊ฒฉ์„ ์„ธ์›Œ ๋จธ๋ฆฟ์†์—์„œ ๋Œ๋ฆด ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๊ณ , ๊ทธ๊ฒƒ์„ ๋‹ค์‹œ ์”จ์•—์œผ๋กœ ๊ตณํžˆ๋Š” ๊ฒƒ์ด๋‹ค.

์ดˆ๊ธฐ ์ง„์ž… ํ”„๋กœํ† ์ฝœ