|
@ -1,7 +1,7 @@ |
|
|
# system {{{ # |
|
|
# system {{{ # |
|
|
|
|
|
|
|
|
# clear screen |
|
|
# clear screen |
|
|
cs "printf '\033c'" |
|
|
|
|
|
|
|
|
c "printf '\033c'" |
|
|
hst "history" |
|
|
hst "history" |
|
|
nf "printf '\033c' && neofetch | lolcat" |
|
|
nf "printf '\033c' && neofetch | lolcat" |
|
|
fi "fish" |
|
|
fi "fish" |
|
@ -9,18 +9,21 @@ fi "fish" |
|
|
ru "xrdb ~/.Xresources" |
|
|
ru "xrdb ~/.Xresources" |
|
|
# list file sizes in megabytes with depth 1 |
|
|
# list file sizes in megabytes with depth 1 |
|
|
dum "sudo du -d 1 -B M" |
|
|
dum "sudo du -d 1 -B M" |
|
|
|
|
|
tl "tldr" |
|
|
|
|
|
|
|
|
vgb "sni /etc/default/grub" |
|
|
vgb "sni /etc/default/grub" |
|
|
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" |
|
|
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" |
|
|
|
|
|
|
|
|
grep "grep --color=auto" |
|
|
|
|
|
rg "grep -nr" |
|
|
|
|
|
|
|
|
grep "grep --color=auto -n" |
|
|
|
|
|
rg "grep -r" |
|
|
# pk "pkill -f" |
|
|
# pk "pkill -f" |
|
|
|
|
|
cld "colordiff -y --suppress-common-lines" |
|
|
|
|
|
|
|
|
mkpk "makepkg -sri" |
|
|
mkpk "makepkg -sri" |
|
|
mkex "chmod 777" |
|
|
mkex "chmod 777" |
|
|
|
|
|
|
|
|
# systemctl |
|
|
|
|
|
|
|
|
# systemctl {{{ # |
|
|
|
|
|
|
|
|
ctl "sudo systemctl" |
|
|
ctl "sudo systemctl" |
|
|
ctle "sudo systemctl enable" |
|
|
ctle "sudo systemctl enable" |
|
|
ctld "sudo systemctl disable" |
|
|
ctld "sudo systemctl disable" |
|
@ -29,6 +32,8 @@ ctls "sudo systemctl stop" |
|
|
ctlt "sudo systemctl status" |
|
|
ctlt "sudo systemctl status" |
|
|
ctlr "sudo systemctl restart" |
|
|
ctlr "sudo systemctl restart" |
|
|
|
|
|
|
|
|
|
|
|
# }}} systemctl # |
|
|
|
|
|
|
|
|
wm "sudo wifi-menu" |
|
|
wm "sudo wifi-menu" |
|
|
|
|
|
|
|
|
# mounting |
|
|
# mounting |
|
@ -37,9 +42,7 @@ udmb "udisksctl mount -b /dev/sdc2" |
|
|
udu "udisksctl unmount -b" |
|
|
udu "udisksctl unmount -b" |
|
|
udub "udisksctl unmount -b /dev/sdc2" |
|
|
udub "udisksctl unmount -b /dev/sdc2" |
|
|
|
|
|
|
|
|
tc "touch" |
|
|
|
|
|
|
|
|
|
|
|
# }}} command line related # |
|
|
|
|
|
|
|
|
to "touch" |
|
|
|
|
|
|
|
|
# directory-related {{{ # |
|
|
# directory-related {{{ # |
|
|
l "ls -a" |
|
|
l "ls -a" |
|
@ -71,7 +74,8 @@ s "systemctl suspend" |
|
|
sd "sudo shutdown 0" |
|
|
sd "sudo shutdown 0" |
|
|
reb "sudo shutdown -r 0" |
|
|
reb "sudo shutdown -r 0" |
|
|
lo "i3-msg exit" |
|
|
lo "i3-msg exit" |
|
|
x "xmodmap ~/.Xmodmap && xset r rate 200 60" |
|
|
|
|
|
|
|
|
x "xmodmap ~/.Xmodmap && xset r rate 200 70" |
|
|
|
|
|
X "xmodmap ~/.Xmodmap && xset r rate 200 70" |
|
|
|
|
|
|
|
|
# }}} power options # |
|
|
# }}} power options # |
|
|
|
|
|
|
|
@ -84,7 +88,8 @@ vlh "alsamixer -c 2" |
|
|
# aptr "sudo apt remove" |
|
|
# aptr "sudo apt remove" |
|
|
# aptu "sudo apt upgrade" |
|
|
# aptu "sudo apt upgrade" |
|
|
|
|
|
|
|
|
# pacman |
|
|
|
|
|
|
|
|
# pacman {{{ # |
|
|
|
|
|
|
|
|
pc "sudo pacman -S" |
|
|
pc "sudo pacman -S" |
|
|
pcr "sudo pacman -Rs" |
|
|
pcr "sudo pacman -Rs" |
|
|
pcud "sudo pacman -Sy" |
|
|
pcud "sudo pacman -Sy" |
|
@ -94,6 +99,8 @@ xpc "pacman -Qqe > ~/linux-config/txt/nzxt-pkgs.txt" |
|
|
# tri "trizen -S --noconfirm" |
|
|
# tri "trizen -S --noconfirm" |
|
|
tri "trizen -S" |
|
|
tri "trizen -S" |
|
|
|
|
|
|
|
|
|
|
|
# }}} pacman # |
|
|
|
|
|
|
|
|
# internet |
|
|
# internet |
|
|
pgo "ping -c 3 8.8.8.8" |
|
|
pgo "ping -c 3 8.8.8.8" |
|
|
dh "sudo dhcpcd" |
|
|
dh "sudo dhcpcd" |
|
@ -120,13 +127,14 @@ chr "google-chrome" |
|
|
# h "htop -s PERCENT_MEM" |
|
|
# h "htop -s PERCENT_MEM" |
|
|
# hc "htop -s PERCENT_CPU" |
|
|
# hc "htop -s PERCENT_CPU" |
|
|
r "ranger" |
|
|
r "ranger" |
|
|
mr "man ranger" |
|
|
|
|
|
|
|
|
mra "man ranger" |
|
|
clc "cloc ." |
|
|
clc "cloc ." |
|
|
n "nvim" |
|
|
n "nvim" |
|
|
sn "sudo nvim" |
|
|
sn "sudo nvim" |
|
|
fh "feh" |
|
|
fh "feh" |
|
|
sx "sxiv" |
|
|
sx "sxiv" |
|
|
sxg "sxiv -a" |
|
|
|
|
|
|
|
|
sxa "sxiv -a" |
|
|
|
|
|
wg "wego" |
|
|
wp "grep wallpaper ~/.cache/wal/colors.sh" |
|
|
wp "grep wallpaper ~/.cache/wal/colors.sh" |
|
|
|
|
|
|
|
|
# rsl "java -jar ~/Downloads/RuneLite.jar" |
|
|
# rsl "java -jar ~/Downloads/RuneLite.jar" |
|
@ -158,25 +166,50 @@ yu "echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard" |
|
|
p3 "python3" |
|
|
p3 "python3" |
|
|
py "python" |
|
|
py "python" |
|
|
|
|
|
|
|
|
|
|
|
# watson {{{ # |
|
|
|
|
|
|
|
|
w "watson" |
|
|
w "watson" |
|
|
wa "watson start" |
|
|
wa "watson start" |
|
|
we "watson edit" |
|
|
we "watson edit" |
|
|
wl "watson log" |
|
|
wl "watson log" |
|
|
|
|
|
# wlm "watson log --project coding --tag mfs" |
|
|
|
|
|
wr "watson report" |
|
|
ws "watson stop" |
|
|
ws "watson stop" |
|
|
|
|
|
wse "watson stop && watson edit" |
|
|
|
|
|
wsl "watson stop && watson log" |
|
|
wt "watson status" |
|
|
wt "watson status" |
|
|
|
|
|
|
|
|
|
|
|
# }}} watson # |
|
|
|
|
|
|
|
|
# }}} applications # |
|
|
# }}} applications # |
|
|
|
|
|
|
|
|
# git {{{ # |
|
|
# git {{{ # |
|
|
# aliases {{{ |
|
|
|
|
|
gstr "git config credential.helper store" |
|
|
gstr "git config credential.helper store" |
|
|
g "git" |
|
|
g "git" |
|
|
|
|
|
|
|
|
# add {{{ # |
|
|
|
|
|
|
|
|
# branch {{{ # |
|
|
|
|
|
|
|
|
|
|
|
gb "git branch" |
|
|
|
|
|
gba "git branch --no-merged && echo '' && git branch --merged" |
|
|
|
|
|
gbu "git branch --no-merged" |
|
|
|
|
|
gbm "git branch --merged" |
|
|
|
|
|
|
|
|
|
|
|
# }}} branch # |
|
|
|
|
|
|
|
|
|
|
|
gr "git remote" |
|
|
|
|
|
|
|
|
|
|
|
# add/remove {{{ # |
|
|
|
|
|
|
|
|
ga "git add -A . && git status -u" |
|
|
ga "git add -A . && git status -u" |
|
|
gac "git add -A . && git commit -S" |
|
|
gac "git add -A . && git commit -S" |
|
|
# unsigned commt |
|
|
# unsigned commt |
|
|
gacu "git add -A . && git commit" |
|
|
gacu "git add -A . && git commit" |
|
|
|
|
|
|
|
|
|
|
|
grm "git rm" |
|
|
|
|
|
grmf "git rm -f" |
|
|
|
|
|
grmc "git rm --cached" |
|
|
|
|
|
grmfc "git rm -f --cached" |
|
|
|
|
|
|
|
|
# }}} add # |
|
|
# }}} add # |
|
|
|
|
|
|
|
|
# diff/log {{{ # |
|
|
# diff/log {{{ # |
|
@ -201,16 +234,19 @@ gls "git ls-tree HEAD --name-only" |
|
|
|
|
|
|
|
|
# push {{{ # |
|
|
# push {{{ # |
|
|
gst "git stash" |
|
|
gst "git stash" |
|
|
|
|
|
gstl "git stash list" |
|
|
gstp "git stash pop" |
|
|
gstp "git stash pop" |
|
|
|
|
|
|
|
|
gc "git commit -S" |
|
|
gc "git commit -S" |
|
|
gcu "git commit" |
|
|
gcu "git commit" |
|
|
gcam "git add -A . && git commit --amend --no-edit -S" |
|
|
|
|
|
|
|
|
gca "git add -A . && git commit --amend --no-edit -S" |
|
|
|
|
|
gcam "git add -A . && git commit --amend -S" |
|
|
# gcamp "git add -A . && git commit --amend --no-edit -S && gpsf" |
|
|
# gcamp "git add -A . && git commit --amend --no-edit -S && gpsf" |
|
|
|
|
|
|
|
|
psgi "git add . && git commit -m 'Update' -S && git push" |
|
|
psgi "git add . && git commit -m 'Update' -S && git push" |
|
|
gps "git push" |
|
|
gps "git push" |
|
|
gpsn "git push --set-upstream origin master" |
|
|
|
|
|
|
|
|
# gpsn "git push --set-upstream origin master" |
|
|
|
|
|
gpsn "eval (git push 2>&1 | tail -n 2)" |
|
|
gpsf "git push --force" |
|
|
gpsf "git push --force" |
|
|
gclear "git stash clear" |
|
|
gclear "git stash clear" |
|
|
|
|
|
|
|
@ -223,17 +259,14 @@ grbc "git rebase --continue" |
|
|
|
|
|
|
|
|
crm "mrk README.md" |
|
|
crm "mrk README.md" |
|
|
|
|
|
|
|
|
# aliases }}} |
|
|
|
|
|
|
|
|
|
|
|
gcho "git checkout" |
|
|
gcho "git checkout" |
|
|
gchon "git checkout -b" |
|
|
gchon "git checkout -b" |
|
|
|
|
|
gf "git fetch" |
|
|
|
|
|
|
|
|
gcln "git clone" |
|
|
gcln "git clone" |
|
|
gchp "git cherry-pick" |
|
|
gchp "git cherry-pick" |
|
|
gchpc "git cherry-pick --continue" |
|
|
gchpc "git cherry-pick --continue" |
|
|
|
|
|
|
|
|
# }}} merge repos # |
|
|
|
|
|
|
|
|
|
|
|
# assume file unchanged |
|
|
# assume file unchanged |
|
|
gunc "git update-index --assume-unchanged" |
|
|
gunc "git update-index --assume-unchanged" |
|
|
|
|
|
|
|
@ -296,7 +329,7 @@ hps "python3 -m http.server" |
|
|
# j "jekyll" |
|
|
# j "jekyll" |
|
|
# js "jekyll serve" |
|
|
# js "jekyll serve" |
|
|
h "hugo" |
|
|
h "hugo" |
|
|
he "hugo serve --disableFastRender" |
|
|
|
|
|
|
|
|
he "hugo serve -D --disableFastRender" |
|
|
|
|
|
|
|
|
ss "ssh kevin@192.168.0.100" |
|
|
ss "ssh kevin@192.168.0.100" |
|
|
|
|
|
|
|
@ -305,10 +338,17 @@ ss "ssh kevin@192.168.0.100" |
|
|
# school {{{ # |
|
|
# school {{{ # |
|
|
|
|
|
|
|
|
# 369 |
|
|
# 369 |
|
|
|
|
|
# a2 |
|
|
|
|
|
m "printf '\033c' && bear make" |
|
|
|
|
|
mc "bear make clean" |
|
|
|
|
|
mcr "bear make clean && printf '\033c' && bear make && ./carsim light 10 50" |
|
|
|
|
|
mr "printf '\033c' && make && ./carsim stop 1 4" |
|
|
|
|
|
# mr "printf '\033c' && bear make && ./carsim light 1 50" |
|
|
|
|
|
hl "valgrind --tool=helgrind ./carsim stop 10 50 > helgrind.txt 2>&1 && valgrind --tool=helgrind ./carsim light 10 50 >> helgrind.txt 2>&1" |
|
|
|
|
|
|
|
|
|
|
|
# a1 |
|
|
# sa "ssh k@192.168.0.17" |
|
|
# sa "ssh k@192.168.0.17" |
|
|
# cpi "scp interceptor.c kevin@192.168.0.17:/home/kevin/a1" |
|
|
# cpi "scp interceptor.c kevin@192.168.0.17:/home/kevin/a1" |
|
|
# cpti "gcc -m32 -o test_intercept test_intercept.c && scp test_intercept k@192.168.0.17:/home/k/a1" |
|
|
# cpti "gcc -m32 -o test_intercept test_intercept.c && scp test_intercept k@192.168.0.17:/home/k/a1" |
|
|
m "printf '\033c' && make" |
|
|
|
|
|
mc "make clean" |
|
|
|
|
|
|
|
|
|
|
|
# }}} school # |
|
|
# }}} school # |