|
@ -7,6 +7,7 @@ |
|
|
# clear screen |
|
|
# clear screen |
|
|
c "printf '\033c'" |
|
|
c "printf '\033c'" |
|
|
d "cd ~/Downloads && printf '\033c'" |
|
|
d "cd ~/Downloads && printf '\033c'" |
|
|
|
|
|
e "echo \$" |
|
|
hst "history" |
|
|
hst "history" |
|
|
# nft "printf '\033c' && neofetch | lolcat" |
|
|
# nft "printf '\033c' && neofetch | lolcat" |
|
|
nft "printf '\033c' && neofetch" |
|
|
nft "printf '\033c' && neofetch" |
|
@ -88,6 +89,7 @@ nctr "sudo systemctl restart netctl-auto@wlp4s0.service" |
|
|
|
|
|
|
|
|
# ssh [[[ # |
|
|
# ssh [[[ # |
|
|
|
|
|
|
|
|
|
|
|
ss "ssh" |
|
|
cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub" |
|
|
cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub" |
|
|
xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard" |
|
|
xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard" |
|
|
# digital ocean |
|
|
# digital ocean |
|
@ -100,6 +102,10 @@ ssp "mosh --ssh='ssh -p 8022' $PHONE_IP" |
|
|
scpp "scp -P 8022 $PHONE_IP:" |
|
|
scpp "scp -P 8022 $PHONE_IP:" |
|
|
sfp "sftp -rP 8022 $PHONE_IP" |
|
|
sfp "sftp -rP 8022 $PHONE_IP" |
|
|
rsp "rsync --ignore-existing -Ptre 'ssh -p 8022' $PHONE_IP:" |
|
|
rsp "rsync --ignore-existing -Ptre 'ssh -p 8022' $PHONE_IP:" |
|
|
|
|
|
# vultr |
|
|
|
|
|
ssa "mosh atxadmin@45.32.87.10" |
|
|
|
|
|
ssv "mosh kevin@45.32.87.10" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# test server sites |
|
|
# test server sites |
|
|
# svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk" |
|
|
# svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk" |
|
@ -450,7 +456,8 @@ usn "usernames --num 20" |
|
|
vmd "vimdiff" |
|
|
vmd "vimdiff" |
|
|
wc "wc -l" |
|
|
wc "wc -l" |
|
|
wch "weechat" |
|
|
wch "weechat" |
|
|
wg "wego" |
|
|
|
|
|
|
|
|
# wg "wego" |
|
|
|
|
|
wg "curl wttr.in" |
|
|
# wg "curl -L wthr.ml" |
|
|
# wg "curl -L wthr.ml" |
|
|
wgm "curl -L wthr.ml/m" |
|
|
wgm "curl -L wthr.ml/m" |
|
|
wgt "curl -L wthr.ml/t" |
|
|
wgt "curl -L wthr.ml/t" |
|
@ -471,6 +478,7 @@ pg "pass generate -c" |
|
|
ps "pass show" |
|
|
ps "pass show" |
|
|
|
|
|
|
|
|
xc "xclip -selection clipboard" |
|
|
xc "xclip -selection clipboard" |
|
|
|
|
|
xo "xclip -o >" |
|
|
yh "echo 'kevin.mok@live.ca' | xclip -selection clipboard" |
|
|
yh "echo 'kevin.mok@live.ca' | xclip -selection clipboard" |
|
|
yg "xclip -selection clipboard ~/.password-store/social/gmail" |
|
|
yg "xclip -selection clipboard ~/.password-store/social/gmail" |
|
|
ytb "xclip -selection clipboard ~/.password-store/social/trapbot" |
|
|
ytb "xclip -selection clipboard ~/.password-store/social/trapbot" |
|
@ -522,9 +530,21 @@ wrw "watson report -Gc" |
|
|
|
|
|
|
|
|
# ]]] log/report # |
|
|
# ]]] log/report # |
|
|
|
|
|
|
|
|
|
|
|
# ]]] watson # |
|
|
|
|
|
|
|
|
|
|
|
# timetrace [[[ # |
|
|
|
|
|
|
|
|
tt "timetrace" |
|
|
tt "timetrace" |
|
|
|
|
|
tta "timetrace start" |
|
|
|
|
|
tte "timetrace edit" |
|
|
|
|
|
ttc "timetrace create" |
|
|
|
|
|
ttp "timetrace create project" |
|
|
|
|
|
ttl "timetrace list records today" |
|
|
|
|
|
ttr "timetrace report" |
|
|
|
|
|
tts "timetrace stop" |
|
|
|
|
|
ttt "timetrace status" |
|
|
|
|
|
|
|
|
# ]]] watson # |
|
|
|
|
|
|
|
|
# ]]] timetrace # |
|
|
|
|
|
|
|
|
# ]]] applications # |
|
|
# ]]] applications # |
|
|
|
|
|
|
|
@ -564,7 +584,7 @@ grao "git remote add orig" |
|
|
grag "git remote add gitea ssh://git@git.kevin-mok.com:399/Kevin-Mok/" |
|
|
grag "git remote add gitea ssh://git@git.kevin-mok.com:399/Kevin-Mok/" |
|
|
|
|
|
|
|
|
grr "git remote remove origin" |
|
|
grr "git remote remove origin" |
|
|
gru "git branch --set-upstream-to=origin/master master" |
|
|
|
|
|
|
|
|
gru "git branch --set-upstream-to=origin/main main" |
|
|
|
|
|
|
|
|
# ]]] branch # |
|
|
# ]]] branch # |
|
|
|
|
|
|
|
@ -606,7 +626,7 @@ gl "git log -5" |
|
|
gl1 "git log --oneline" |
|
|
gl1 "git log --oneline" |
|
|
gl1x "git log --oneline -1 | xclip -selection clipboard" |
|
|
gl1x "git log --oneline -1 | xclip -selection clipboard" |
|
|
gla "git log" |
|
|
gla "git log" |
|
|
glm "git log master" |
|
|
|
|
|
|
|
|
glm "git log main" |
|
|
glr "git log --reverse" |
|
|
glr "git log --reverse" |
|
|
gqs "git-quick-stats -T" |
|
|
gqs "git-quick-stats -T" |
|
|
# gsl "git shortlog" |
|
|
# gsl "git shortlog" |
|
@ -627,21 +647,22 @@ gfo "git fetch orig" |
|
|
gch "git checkout" |
|
|
gch "git checkout" |
|
|
gchn "git checkout -b" |
|
|
gchn "git checkout -b" |
|
|
gchm "git checkout master" |
|
|
gchm "git checkout master" |
|
|
|
|
|
gchmn "git checkout main" |
|
|
gchnw "git checkout -b wip" |
|
|
gchnw "git checkout -b wip" |
|
|
gchw "git checkout wip" |
|
|
gchw "git checkout wip" |
|
|
gchh "git checkout HEAD --" |
|
|
gchh "git checkout HEAD --" |
|
|
|
|
|
|
|
|
# grss "git reset --soft HEAD~1" |
|
|
# grss "git reset --soft HEAD~1" |
|
|
# grs "git reset --hard" |
|
|
# grs "git reset --hard" |
|
|
# grso "git reset --hard origin/master" |
|
|
|
|
|
|
|
|
# grso "git reset --hard origin/main" |
|
|
# grsh "git reset --hard HEAD" |
|
|
# grsh "git reset --hard HEAD" |
|
|
# grsh1 "git reset --hard HEAD~1" |
|
|
# grsh1 "git reset --hard HEAD~1" |
|
|
grs "git reset --soft" |
|
|
grs "git reset --soft" |
|
|
grs1 "git reset --soft HEAD~1" |
|
|
grs1 "git reset --soft HEAD~1" |
|
|
grs1c "git reset --soft HEAD~1 && git commit --amend --no-edit -S" |
|
|
grs1c "git reset --soft HEAD~1 && git commit --amend --no-edit -S" |
|
|
grso "git reset --soft orig/master" |
|
|
|
|
|
|
|
|
grso "git reset --soft orig/main" |
|
|
grsh "git reset --hard" |
|
|
grsh "git reset --hard" |
|
|
grsho "git reset --hard origin/master" |
|
|
|
|
|
|
|
|
grsho "git reset --hard origin/main" |
|
|
grshh "git reset --hard HEAD" |
|
|
grshh "git reset --hard HEAD" |
|
|
grshh1 "git reset --hard HEAD~1" |
|
|
grshh1 "git reset --hard HEAD~1" |
|
|
# show files in git repo |
|
|
# show files in git repo |
|
@ -684,9 +705,10 @@ gpsoh "git push -f origin HEAD:" |
|
|
gpsg "git push gitea" |
|
|
gpsg "git push gitea" |
|
|
gpsd "git push origin --delete" |
|
|
gpsd "git push origin --delete" |
|
|
# gpsi "git config credential.helper store && git push" |
|
|
# gpsi "git config credential.helper store && git push" |
|
|
# gpsn "git push --set-upstream origin master" |
|
|
|
|
|
|
|
|
# gpsn "git push --set-upstream origin main" |
|
|
gpsn "eval (git push 2>&1 | tail -n 2)" |
|
|
gpsn "eval (git push 2>&1 | tail -n 2)" |
|
|
gpsf "git push --force" |
|
|
gpsf "git push --force" |
|
|
|
|
|
gpsu "git push --set-upstream origin" |
|
|
|
|
|
|
|
|
# assume file unchanged |
|
|
# assume file unchanged |
|
|
gunc "git update-index --assume-unchanged" |
|
|
gunc "git update-index --assume-unchanged" |
|
@ -725,7 +747,7 @@ zp "chezmoi -v apply" |
|
|
# spotify-lib-vis [[[ # |
|
|
# spotify-lib-vis [[[ # |
|
|
|
|
|
|
|
|
# start spv server outside dir |
|
|
# start spv server outside dir |
|
|
ssv "source ../bin/activate.fish && python manage.py runserver" |
|
|
|
|
|
|
|
|
psv "source ../bin/activate.fish && python manage.py runserver" |
|
|
# open spv db in psql |
|
|
# open spv db in psql |
|
|
spvdb "psql -d spotifyvis -U django" |
|
|
spvdb "psql -d spotifyvis -U django" |
|
|
mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv" |
|
|
mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv" |
|
@ -915,12 +937,14 @@ ghr "github-release" |
|
|
o "kubectl" |
|
|
o "kubectl" |
|
|
oa "kubectl apply -f" |
|
|
oa "kubectl apply -f" |
|
|
oc "kubectl create" |
|
|
oc "kubectl create" |
|
|
ocf "kubectl config set-context --current --namespace=kogito" |
|
|
|
|
|
|
|
|
ocf "kubectl create ns kogito; kubectl config set-context --current --namespace=kogito" |
|
|
|
|
|
oct "kubectx" |
|
|
od "kubectl describe" |
|
|
od "kubectl describe" |
|
|
odp "kubectl describe pod" |
|
|
odp "kubectl describe pod" |
|
|
odi "kubectl describe kogitoinfra" |
|
|
odi "kubectl describe kogitoinfra" |
|
|
odr "kubectl describe kogitoruntime" |
|
|
odr "kubectl describe kogitoruntime" |
|
|
odl "kubectl delete" |
|
|
odl "kubectl delete" |
|
|
|
|
|
odlf "kubectl delete -f" |
|
|
odlb "kubectl delete kogitobuild" |
|
|
odlb "kubectl delete kogitobuild" |
|
|
odlc "kubectl delete configmap" |
|
|
odlc "kubectl delete configmap" |
|
|
odlp "kubectl delete pod" |
|
|
odlp "kubectl delete pod" |
|
@ -937,6 +961,8 @@ ogc "kubectl get configmap" |
|
|
ogi "kubectl get imagestream" |
|
|
ogi "kubectl get imagestream" |
|
|
ogn "kubectl get" |
|
|
ogn "kubectl get" |
|
|
ogr "kubectl get kogitoruntime" |
|
|
ogr "kubectl get kogitoruntime" |
|
|
|
|
|
ogs "kubectl get service" |
|
|
|
|
|
ogsm "kubectl get servicemonitor" |
|
|
ol "kubectl logs -f" |
|
|
ol "kubectl logs -f" |
|
|
oli "kubectl login -u kubeadmin -p" |
|
|
oli "kubectl login -u kubeadmin -p" |
|
|
on "kubectl new-project" |
|
|
on "kubectl new-project" |
|
@ -971,6 +997,7 @@ mvpr "mvn clean package -DskipTests && ./server-control.sh start" |
|
|
# make [[[ # |
|
|
# make [[[ # |
|
|
|
|
|
|
|
|
mk "make -j8" |
|
|
mk "make -j8" |
|
|
|
|
|
mb4 "make -j8 before-pr" |
|
|
mbc "make build-cli && scp build/_output/bin/kogito $WORK_LAPTOP_IP:/home/kmok/go/bin" |
|
|
mbc "make build-cli && scp build/_output/bin/kogito $WORK_LAPTOP_IP:/home/kmok/go/bin" |
|
|
mc "make clean" |
|
|
mc "make clean" |
|
|
mct "make clean test" |
|
|
mct "make clean test" |
|
@ -1001,6 +1028,7 @@ gor "go run" |
|
|
gom "DEBUG=true go run main.go" |
|
|
gom "DEBUG=true go run main.go" |
|
|
got "go test" |
|
|
got "go test" |
|
|
gota "go test *" |
|
|
gota "go test *" |
|
|
|
|
|
gotd "go mod tidy" |
|
|
|
|
|
|
|
|
# ]]] go # |
|
|
# ]]] go # |
|
|
|
|
|
|
|
@ -1020,6 +1048,7 @@ sbp "ansible-playbook" |
|
|
h "helm" |
|
|
h "helm" |
|
|
hd "helm delete" |
|
|
hd "helm delete" |
|
|
hi "helm install" |
|
|
hi "helm install" |
|
|
|
|
|
ht "helm template" |
|
|
hu "helm upgrade" |
|
|
hu "helm upgrade" |
|
|
|
|
|
|
|
|
# ]]] red-hat # |
|
|
# ]]] red-hat # |
|
|