Skip to content

Instantly share code, notes, and snippets.

View ryuheechul's full-sized avatar
💻
hacking on projects!

Heechul Ryu ryuheechul

💻
hacking on projects!
View GitHub Profile
@ryuheechul
ryuheechul / demo.md
Last active January 23, 2021 19:13
My rust gists

Avoid multi Ifs with multiple Options

// don't do below:
if let(x) = fn_returns_option() {
 return x
}

// especially these:
if let(x) = fn_returns_option() {
@ryuheechul
ryuheechul / gcloud-cheatsheets.md
Last active March 20, 2021 11:06
gcloud cheatsheets
@ryuheechul
ryuheechul / packer-dry-example.pkr.hcl
Created February 12, 2021 16:54
A fight history to achieve DRY template.pkr.hcl with packer
# this is based on my (not so desirable) experience with packer 1.6.6 in Feb 2021
# you might want to read these pages to understand the situation below
# - https://www.packer.io/docs/from-1.5/blocks/build/source
# - https://www.packer.io/docs/from-1.5/blocks/build/provisioner
# - https://www.packer.io/docs/from-1.5/blocks/source
# - https://www.packer.io/docs/from-1.5/onlyexcept
# - https://www.packer.io/docs/builders/vagrant
locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
@ryuheechul
ryuheechul / Nix.md
Last active January 30, 2023 19:02
Personal micro wiki for nix(os)
@ryuheechul
ryuheechul / windows.md
Last active October 1, 2025 17:06
Let that Windows 10/11 be a bit friendlier

An attempt to make Windows 10/11 work for me by customizing/personalizing it

Why gist not dotfiles?

I use dotfiles to personalize *nix type of machines. But I'm new to personalizing Windows 10. So I'm collecting information here first before adding these to the dotfiles. I'm not sure if these will ever move to dotfiles though.

Enable WSL2

@ryuheechul
ryuheechul / git.md
Last active April 11, 2025 23:23
Note about Git and Github
@ryuheechul
ryuheechul / collection.rego
Last active January 8, 2024 13:37
OPA Rego collection helpers
package collection
# Map
my_add(x, y) = x + y
map_add[x] = val {
col := input.col
delta := input.delta