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 / 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
@ryuheechul
ryuheechul / KOReader-on-rm2.md
Last active January 3, 2024 05:32
Installing KOReader on Remarkable 2
@ryuheechul
ryuheechul / _tips.md
Last active October 29, 2023 19:26
Kinesis Advantage 2 Keyboard Customization

progm + [hotkey] Changes Layouts

  • progrm + m => m_querty.txt (macOS)
  • progrm + w => w_querty.txt (Windows)

progm + <Esc> Prints Status

Make sure to open a editor that your keyboard can print (type) it out.

Advantages 2 Support Page

https://kinesis-ergo.com/support/advantage2

@ryuheechul
ryuheechul / test-memory-leak.ts
Created March 15, 2023 07:04
Simple javascript memory leak tester
// a quick memory leak tester
// TODO: actually verify and make it objectively testable
function getRandomInt(max: number) {
return Math.floor(Math.random() * max);
}
const size = 2000 * 1000 as const; // whatever length to make the size big enough at each step
@ryuheechul
ryuheechul / patch-ipp-for-local.md
Last active February 8, 2023 22:20
A helm post-renderer for hitchhikers to the tiny planet of minikube + local images

But why? At least three reasons:

  1. You want to use local images without having to push to a remote registry
  • you probably just built an image locally and want to use that image with a helm chart
  • you can see the image when you run minikube image ls
  • but you still got an error on image pulling and the reason was imagePullPolicy: Always
  1. with imagePullPolicy: Always, minikube (or probably limitation on k8s) will always attempt to pull from remote registry ignoring "locally pulled" ones
  1. Helm charts not always expose imagePullPolicy as editable values
@ryuheechul
ryuheechul / Nix.md
Last active January 30, 2023 19:02
Personal micro wiki for nix(os)
@ryuheechul
ryuheechul / emacs.md
Last active January 27, 2023 18:45
Note about emacs
Context about Emacs and me I used a few text editors (with vim key bindings) lightly for a number of years and I started wanting more.

In 2016, I first stumbled upon Spacemacs and got hooked for a while. That was my first Emacs experience. Spacemacs was so user friendly that I didn't have to learn Emacs at all.

In 2017, I moved on to VSCode (with VSpaceCode) as it got popular. In 2019, I moved to [Neo]vim (with SpaceVim) mainly because of the better performance and it was a natural transition as I also started using Tmux and I started to refuse leaving terminals.

@ryuheechul
ryuheechul / macOS.md
Last active January 27, 2023 04:45
A note to enhance macOS experience
@ryuheechul
ryuheechul / jira-standup.zsh
Last active September 16, 2022 16:32
a helper to bootstrap stand-ups messages quickly by fetching data from Jira and render for editing and pasting
# vim: set ft=zsh:
## You are suppose to source this file from your shell - tested on zsh and might work with bash as well
# like `source [this_file]`
# You can turn this into scripts if that's more of your taste
## binary dependancies
# - https://github.com/stedolan/jq # json processor
# - https://github.com/charmbracelet/glow # markdown render on cli
# - https://github.com/httpie/httpie # A command line HTTP client whose goal is to make CLI human-friendly
@ryuheechul
ryuheechul / simple-healthcheck.sh
Last active July 28, 2022 22:23
Useful commands
#!/usr/bin/env bash
url='https://github.com' # or whatever url you want to check
sec=3
while true; do
date -u +%H:%M:%S # or date +%H:%M:%S
echo "${url}"
# https://unix.stackexchange.com/a/84820/396504
curl -Is "${url}" | head -n 1 && sleep "${sec}"