Skip to content

Instantly share code, notes, and snippets.

View HoKim98's full-sized avatar
๐Ÿ™‚
Arch Linux + K8S + Rust + OSS

Ho Kim HoKim98

๐Ÿ™‚
Arch Linux + K8S + Rust + OSS
View GitHub Profile
#!/bin/bash
# Fix: League of Legends 9.10 Crash after champ select
# Reddit: https://www.reddit.com/r/leagueoflinux/comments/bpjxg0/a_proofofconcept_hack_makes_post910_playable_again/
# WineHQ: https://bugs.winehq.org/show_bug.cgi?id=47198
# Assert no files *here*
PWD=`pwd`
if [ "$(ls -al | wc -l)" -gt "4" ]
then
echo "Please make current directory clean (no files)"
@HoKim98
HoKim98 / install.sh
Last active June 2, 2022 18:36
[Ubuntu] OpenVSLAM automatic installation script
#!/bin/bash
cd ~/Desktop
# ---------------------------
## 0. Requirements
# ---------------------------
sudo apt-get update
sudo apt-get install -y build-essential git pkg-config cmake make \
gcc curl wget unzip \
@HoKim98
HoKim98 / manual.md
Created February 20, 2021 23:18
# SmartX mini

Lab: Clustering

Rook ์„ค์น˜ ์ค€๋น„

๋น„์–ด์žˆ๋Š” ๋””๋ฐ”์ด์Šค ํ˜น์€ ํŒŒํ‹ฐ์…˜์ด ์ตœ์†Œ ํ•˜๋‚˜๊ฐ€ ์กด์žฌํ•ด์•ผ ํ•œ๋‹ค.

sudo cfdisk /dev/sdX
@HoKim98
HoKim98 / install.sh
Created October 13, 2022 07:40
Install Mellanox MFT
apt-get update && apt-get install gcc make dkms apt-utils pciutils -y
wget https://www.mellanox.com/downloads/MFT/mft-4.21.0-99-x86_64-deb.tgz
tar xf ./mft-4.21.0-99-x86_64-deb.tgz
pushd mft-4.21.0-99-x86_64-deb
./install.sh
popd
rm mft-4.21.0-99-x86_64-deb*
@HoKim98
HoKim98 / .sonic_aliases
Created October 17, 2022 08:50
SONiC Utilities
#!/usr/bin/env
# Copyright (c) 2022 Ho Kim ([email protected]). All rights reserved.
# Use of this source code is governed by a MIT license.
# define a macro function
function interfaces_do() {
# get all ethernet interfaces
declare -a INTERFACES_ALL=$(show interfaces status | grep -Po '^ *Ethernet\K(\d+)')
# get command line arguments
@HoKim98
HoKim98 / install-novnc.sh
Last active April 10, 2023 06:45
Install noVNC with docker
#!/bin/bash
# Copyright (c) 2023 Ho Kim ([email protected]). All rights reserved.
# Install X11VNC
docker run -d \
--name x11vnc \
--restart always \
--net host \
-e DISPLAY=":0" \
-e X11VNC_ARGS="-cursor most -noscr -nowcr -nowf -noxdamage -auth /root/.Xauthority" \
@HoKim98
HoKim98 / Dockerfile
Last active December 16, 2024 04:05
Multi-screen (Multi-GPU) XFCE Settings
# Copyright (c) 2023 Ho Kim ([email protected]). All rights reserved.
# Configure environment variables
ARG ROCKYLINUX_VERSION="8"
# Be ready for serving
FROM "quay.io/rockylinux/rockylinux:${ROCKYLINUX_VERSION}" as base
# Install desktop environment dependencies
RUN dnf install -y \
@HoKim98
HoKim98 / gist:f11956a9f8dc13c8e105c8f050893107
Created June 27, 2023 11:16
ISAAC SIM docker (test only)
podman run --name isaac-sim --entrypoint bash -it --device nvidia.com/gpu=all -e "ACCEPT_EULA=Y" --rm --network=host \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY \
-v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache/Kit:rw \
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
-v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
-v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
-v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
@HoKim98
HoKim98 / faq_ipmi.md
Last active August 17, 2024 09:53
Resolve some issues while operating K8S on Bare-Metal

IPMI TroubleShootings

Infinite Loading of Supermicro BMC

  1. Turn off Adblocks
@HoKim98
HoKim98 / softether-vpn-server-on-kubernetes.yaml
Last active November 4, 2023 12:56
Softether VPN Server on Kubernetes
# ๊ฐœ๋นก์น˜๋„ค ์™œ VPN์„ ๋ง‰์•„๋‘๋Š”๊ฑฐ์ง€?
# ํ•˜์ง€๋งŒ ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์™€ ํ•จ๊ป˜๋ผ๋ฉด ์กฐ๊ธˆ์€ ๋ฒ„ํ‹ธ ์ˆ˜ ์žˆ์–ด..
#
# ์‚ฌ์šฉ๋ฒ•:
# 1. ์•„๋ž˜ ์ฝ”๋“œ์—์„œ ๋‹ค์Œ ๋ฌธ์ž์—ด์„ ์šฉ๋„์— ๋งž๊ฒŒ ์น˜ํ™˜: __ADMIN_PASSWORD__, __LOADBALANCER_IP__
# 2. ๋ฐฐํฌ ใ„ฑใ„ฑ
#
# ์ฃผ์˜์‚ฌํ•ญ:
# 1. ์•„๋ž˜ ์ฝ”๋“œ๋Š” ์—ฌ๋Ÿฌ๋ฒˆ์˜ ํ…Œ์ŠคํŠธ์™€ ์ˆ˜์‹ญ๋ฒˆ์˜ ๋ณด์•ˆ ๊ฐ•ํ™”๋ฅผ ํ†ตํ•ด์•ผ ์—ฌ๋Ÿฌ๋ช…์ด ๋Œ๋ ค์“ฐ๊ธฐ์— ์ถฉ๋ถ„ํ• ๋“ฏ.
# 2. ํŠนํžˆ, ๊ด€๋ฆฌ์ž ๋น„๋ฐ€๋ฒˆํ˜ธ (HPW, SPW)์™€ Resource Limits๋ฅผ ์žฅ๋น„ ์ƒํ™ฉ์— ๋งž๊ฒŒ ์ž˜ ์กฐ์ ˆํ•ด์ฃผ๋„๋ก ํ•œ๋‹ค.