# COMMIT_USERNAME is for your commit user name
export COMMIT_USERNAME="Eohyung Lee"
# COMMIT_USERNAME is for your commit email
export COMMIT_USEREMAIL=liquidnuker@gmail.com
# GITHUB_USERNAME is for github user name(or organization name)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sss () | |
| { | |
| pods=$(kubectl get pods --all-namespaces \ | |
| --no-headers --show-labels | \ | |
| sed '1d' | \ | |
| fzf -x -m -e +s --reverse --no-mouse \ | |
| --bind=left:page-up,right:page-down | \ | |
| awk '{print $1" "$7}'); | |
| if [[ $pods != "" ]]; then | |
| namespace=${pods/ *}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| SERVER='localhost:8001' | |
| while true; | |
| do | |
| for POD in $(kubectl --server $SERVER get pods -o json --all-namespaces | \ | |
| jq -r '.items[] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #.bashrc | |
| xset r rate 250 60 | |
| # cat /etc/X11/xorg.conf.d/30-touch.conf | |
| Section "InputClass" | |
| Identifier "touchpad" | |
| MatchIsTouchpad "on" | |
| MatchDevicePath "/dev/input/event18" | |
| MatchDriver "libinput" | |
| # here add your option | |
| Option "Tapping" "1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. First of all of course get Manjaro: | |
| https://manjaro.org/get-manjaro/ | |
| # I recommend using Etcher to copy the image to your USB: | |
| https://etcher.io/ | |
| # 2. Before installing make sure: | |
| # - Secure boot is disabled in BIOS | |
| # - Your SSD, HDD or NVME drive is set to AHCI instead of RAID | |
| # - Fastboot should be on Auto or minimal, but this shouldn't matter to much |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| # install.sh | |
| # This script installs my basic setup for a manjaro laptop | |
| # Choose a user account to use for this installation | |
| get_user() { | |
| if [ -z "${TARGET_USER-}" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function ensure_privileged_or_exit() { | |
| grep -xq $'CapBnd:\t0000003fffffffff' /proc/self/status || \ | |
| (echo -e "[ERROR] Run with --privileged option." ; exit 1) | |
| } | |
| ### Main | |
| ensure_privileged_or_exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curl -fSL \ | |
| --progress \ | |
| -H "Authorization: Bearer $(curl -fsSL \ | |
| "https://auth.docker.io/token?service=registry.docker.io&scope=repository:leoh0/kakaotalk:pull" | \ | |
| sed 's/.*"token":"\([^"]*\)".*/\1/g')" \ | |
| https://registry-1.docker.io/v2/leoh0/kakaotalk/blobs/sha256:030ac842b5fc9f2a86056a93bbf8c4f706b33db131952f1f571c28013f266bfc | \ | |
| tar xzvf - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s \ | |
| --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ | |
| -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
| -H 'Content-Type: application/json' \ | |
| -d'{"apiVersion":"v1","kind":"Pod","metadata":{"name":"nginx"},"spec":{"containers":[{"name":"nginx","image":"nginx","ports":[{"containerPort":80}]}]}}' \ | |
| https://kubernetes.default.svc/api/v1/namespaces/$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)/pods | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pod μμ±μ μν μ€λΉ | |
| kubectl create sa a | |
| kubectl create role a --verb=create --resource=pod | |
| kubectl create rolebinding a --role=a --serviceaccount=default:a | |
| # pod νλ μμ± | |
| cat << EOF | kubectl apply -f - | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: |