Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

763 lines
17 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # vim: fdm=marker ft=go-template.sh syntax=sh
  2. # system [[[
  3. # basic [[[ #
  4. # clear screen
  5. c "printf '\033c'"
  6. d "cd ~/Downloads && printf '\033c'"
  7. hst "history"
  8. # nft "printf '\033c' && neofetch | lolcat"
  9. nft "printf '\033c' && neofetch"
  10. fi "fish"
  11. # reload urxvt
  12. ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
  13. dua "sudo du -h --apparent-size | sort -h"
  14. # list file sizes in megabytes with depth 1
  15. # duh "sudo du -d 1 -h --apparent-size | sort -h"
  16. # dum "sudo du -d 1 -m --apparent-size | sort -h"
  17. duh "du -d 1 -h --apparent-size | sort -h"
  18. dum "du -d 1 -m --apparent-size | sort -h"
  19. # m "man"
  20. td "tldr"
  21. # ]]] basic #
  22. # display [[[ #
  23. # nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
  24. xr "xrandr"
  25. {{ if eq .chezmoi.fullHostname "nzxt" }}
  26. xrn "xrandr --output HDMI-0 --rotate normal"
  27. xrr "xrandr --output HDMI-0 --rotate right"
  28. {{ end }}
  29. {{ if eq .chezmoi.fullHostname "x1-carbon" }}
  30. xro "xrandr --output HDMI2 --off"
  31. xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33"
  32. xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33"
  33. xrs "xrandr -s 0"
  34. {{ end }}
  35. # ]]] display #
  36. ngb "sudo nvim /etc/default/grub"
  37. mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
  38. # a "bat"
  39. ba "bat"
  40. # ba "bat *"
  41. awkp "awk -F',' '{print \$0}'"
  42. fde "fd -e"
  43. grep "grep --color=auto -n"
  44. grpr "grep -r"
  45. rg "rg -S"
  46. rge "rg -St"
  47. # pk "pkill -f"
  48. cld "colordiff -wy --suppress-common-lines"
  49. mkpk "makepkg -sri"
  50. ex "chmod +x"
  51. lns "ln -s"
  52. # systemctl [[[ #
  53. ct "sudo systemctl"
  54. cte "sudo systemctl enable"
  55. ctd "sudo systemctl daemon-reload"
  56. ctdi "sudo systemctl disable"
  57. cta "sudo systemctl start"
  58. cts "sudo systemctl stop"
  59. ctt "sudo systemctl status"
  60. # ctr "sudo systemctl restart"
  61. ctltd "sudo systemctl status dhcpcd"
  62. ctlas "sudo systemctl start sshd"
  63. nct "sudo netctl"
  64. nctf "sudo ip link set dev wlp3s0 down"
  65. nctr "sudo systemctl restart netctl-auto@wlp4s0.service"
  66. # ]]] systemctl #
  67. # ssh [[[ #
  68. cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub"
  69. xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard"
  70. # digital ocean
  71. ssd "mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a"
  72. sdh "mosh --ssh='ssh -p 399' kevin@165.22.239.234 htop"
  73. sfd "sftp -P 399 kevin@165.22.239.234"
  74. # phone
  75. ssp "mosh --ssh='ssh -p 8022' 192.168.0.13"
  76. sfp "sftp -P 8022 192.168.0.13"
  77. # test server sites
  78. # svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk"
  79. # postgres ssh tunnel
  80. sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432"
  81. # ]]] ssh #
  82. wh "watch"
  83. ct "crontab"
  84. cte "crontab -e"
  85. wm "sudo wifi-menu"
  86. # mounting [[[ #
  87. udm "udisksctl mount -b"
  88. udmb "udisksctl mount -b /dev/sdc2"
  89. udu "udisksctl unmount -b"
  90. udub "udisksctl unmount -b /dev/sdc2"
  91. # ]]] mounting #
  92. tch "touch"
  93. vdr "vidir --verbose"
  94. # directory-related [[[ #
  95. {{ if not (eq .linux_os "termux") }}
  96. l "lsd -F --group-dirs first"
  97. la "lsd -AF --group-dirs first"
  98. ll "lsd -lF --group-dirs first --size short"
  99. lla "lsd -AlF --group-dirs first --size short"
  100. {{ else }}
  101. l "ls"
  102. la "ls -a"
  103. ll "ls -l"
  104. lla "ls -al"
  105. {{ end }}
  106. cwd "echo (pwd) | xclip -selection clipboard"
  107. smv "sudo mv"
  108. f "cd"
  109. fz "fzf -e"
  110. fbg "cd ~/Pictures/Backgrounds && ranger --selectfile (fzf -e --delimiter '/' --with-nth -1)"
  111. fnd "find . -type f -name"
  112. rmr "rm -rf"
  113. rmd "rm ~/Downloads/*"
  114. rmw "rm ~/.local/share/nvim/swap/"
  115. md "mkdir -p"
  116. rsy "rsync -Pr"
  117. # list all (un)mounted drives
  118. lhd "sudo fdisk -l"
  119. # get disc space for mounted drives
  120. # ds "df -h | tee >(head -n 1) >(grep sd) >/dev/null"
  121. ds "df -h | head -n 1 && df -h | grep sd"
  122. chownw "sudo chown -R kevin:wheel"
  123. chwnm "sudo chown -R kevin:wheel /run/media/{{ .chezmoi.username }}"
  124. # cd into backup folder and show backup sizes
  125. nbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.fullHostname }}/tar && lsd -l"
  126. # ]]] directory-related #
  127. # power options [[[ #
  128. s "systemctl suspend"
  129. x "exit"
  130. so "xset dpms force off"
  131. sd "tmux kill-server; systemctl poweroff"
  132. rb "systemctl reboot"
  133. lo "i3-msg exit"
  134. xm "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
  135. X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
  136. {{ if eq .chezmoi.fullHostname "x1-carbon" }}
  137. xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
  138. XL "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
  139. bt "~/linux-config/dot_config/i3blocks/scripts/executable_battery"
  140. {{ end }}
  141. # ]]] power options #
  142. # sound [[[ #
  143. {{ if eq .chezmoi.fullHostname "nzxt" }}
  144. vlm "alsamixer -c 0"
  145. vlh "alsamixer -c 2"
  146. {{ else }}
  147. vlm "alsamixer -c 1"
  148. {{ end }}
  149. # ]]] sound #
  150. # pkg management [[[ #
  151. {{ if eq .linux_os "arch" }}#[[[
  152. # pacman [[[ #
  153. # pc "sudo pacman -S"
  154. # pcq "sudo pacman -Qi"
  155. # pcr "sudo pacman -Rns"
  156. # pcud "sudo pacman -Sy"
  157. # pcug "sudo pacman -Syu"
  158. # xpc "pacman -Qqne > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-pkgs.txt && pacman -Qqme > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-aur.txt "
  159. # ]]] pacman #
  160. # tri "trizen -S --noconfirm"
  161. tri "trizen -S --noedit"
  162. # yay [[[ #
  163. # install
  164. ya "yay -S --answerclean=None --answerdiff=None --answeredit=None"
  165. # info
  166. yaq "yay -Qi"
  167. # list files
  168. yal "yay -Ql"
  169. # remove
  170. yar "yay -Rns"
  171. # search
  172. yas "yay -Qs"
  173. # sync
  174. yau "yay -Sy"
  175. # sync and download
  176. yadl "yay -Syuw --answerclean=None --answerdiff=None --answeredit=None"
  177. # sync and update
  178. yaug "yay -Syu --answerclean=None --answerdiff=None --answeredit=None"
  179. # ]]] yay #
  180. #]]]
  181. {{ else if eq .linux_os "termux" }}#[[[
  182. pki "pkg install"
  183. pkli "pkg list-installed"
  184. pku "pkg uninstall"
  185. pks "pkg search"
  186. xpk "pkg list-installed | awk -F/ '{print \$1}' > ~/{{ .chezmoi.os }}-config/txt/termux-pkgs.txt"
  187. {{ end }}#]]]
  188. # apt [[[ #
  189. {{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
  190. ap "apt install"
  191. apr "apt remove"
  192. apu "apt upgrade"
  193. {{ end }}
  194. # ]]] apt #
  195. # ]]] pkg management #
  196. # python [[[ #
  197. py "python"
  198. py2 "python2"
  199. # pyt "printf '\033c' && pytest -vvs"
  200. pyt "clear && tmux clear-history && pytest -vvs"
  201. pyts "clear && tmux clear-history && pytest -vv"
  202. pyu "python -m unittest"
  203. pipi "pip install --user"
  204. spipi "sudo pip install"
  205. # ]]] python #
  206. # internet [[[ #
  207. pg "ping -c 2 -W 1 8.8.8.8"
  208. pgc "ping 8.8.8.8"
  209. dh "sudo dhcpcd"
  210. kdh "sudo killall dhcpcd"
  211. rdh "sudo killall dhcpcd && sudo dhcpcd"
  212. wgt "wget"
  213. {{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
  214. nt "nginx -t"
  215. {{ end }}
  216. # ]]] internet #
  217. whc "which"
  218. fl "file"
  219. id "identify"
  220. # rz "source ~/{{ .chezmoi.os }}-config/aliases/zsh_aliases"
  221. mst "sudo rm ~/st/config.h && sudo bear make -C ~/st install"
  222. # mst "sudo ~/st/make-st.sh"
  223. # system ]]]
  224. # applications [[[ #
  225. # silent="> /dev/null 2>&1& "
  226. am "antimicro"
  227. # task [[[ #
  228. a "task"
  229. aa "task add"
  230. aal "task add proj:lnx"
  231. aam "task add proj:mny"
  232. aap "task add proj:"
  233. aas "task add proj:sch"
  234. aay "task add proj:pey"
  235. ac "task context"
  236. acn "task context none && task"
  237. ach "task context home && task"
  238. aco "task context out && task"
  239. acs "task context sch && task"
  240. af "task proj:"
  241. apl "task completed"
  242. al "task limit:15"
  243. alg "task log"
  244. ans "task +next"
  245. ao "taskopen"
  246. asm "task summary"
  247. awt "task waiting"
  248. ay "task sync"
  249. # ]]] task #
  250. # buku [[[ #
  251. # b "buku"
  252. bd "buku -za '"
  253. bdb "sqlitebrowser ~/.local/share/buku/bookmarks.db &"
  254. bh "buku -h | bat"
  255. bi "buku --immutable 1 -zu"
  256. bo "buku -o"
  257. bp "buku -p"
  258. br "buku -zd"
  259. brp "buku --replace"
  260. bs "buku --deep -n5 -s"
  261. bsq "sqlitebrowser ~/.local/share/buku/bookmarks.db &"
  262. bsv "bukuserver run --host 127.0.0.1 --port 5001"
  263. bt "buku --deep -n5 -t"
  264. bu "buku -zu"
  265. but "buku -zu --tag"
  266. bw "buku --immutable 1 -zw -1"
  267. # ]]] buku #
  268. cc "calcurse"
  269. ccc "calcurse -D ~/.calcurse/alt-cals/class"
  270. cci "calcurse -i"
  271. ccs "calcurse-caldav"
  272. chr "google-chrome"
  273. clc "cloc ."
  274. cv "cava"
  275. dg "dragon-drag-and-drop -x"
  276. ffx "firefox"
  277. fh "feh"
  278. fi "fish"
  279. gpd "gpg --decrypt"
  280. gpe "gpg --encrypt --recipient"
  281. h "habitctl log"
  282. # hbe "habitctl edit"
  283. # hbeh "habitctl edith"
  284. htc "htop -s PERCENT_CPU"
  285. htm "htop -s PERCENT_MEM"
  286. i "sxiv"
  287. ia "sxiv -a"
  288. it "sxiv -t *"
  289. ki "kill -9"
  290. ka "killall"
  291. kd "killall Discord && killall Discord"
  292. kr "killall electron"
  293. kt "killall thunderbird"
  294. lio "libreoffice"
  295. mp "mpv --volume=50"
  296. mra "man ranger"
  297. # mt "minetest"
  298. n "nvim"
  299. ndu "ncdu"
  300. p3 "python3"
  301. pdft "pdftotext"
  302. pipes "pipes.sh -t 3"
  303. py "python"
  304. q "qalc '"
  305. qg "qalculate-gtk"
  306. r "ranger"
  307. rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)"
  308. # rgc "printf '\033c' && rg"
  309. # rgc "printf '\033c' && rg"
  310. rgc "clear && tmux clear-history && rg -S"
  311. rx "redshift -x"
  312. scm "sc-im"
  313. sn "sudo nvim"
  314. sqlb "sqlitebrowser"
  315. ss "mosh"
  316. stp "termdown"
  317. # sw "swex"
  318. t "tmux"#[[[
  319. ta "tmux a -t"
  320. tacf "tmux a -t config || tmux new -s config"
  321. taj "tmux a -t journal || tmux new -s journal"
  322. tal "tmux a"
  323. tc "clear && tmux clear-history"
  324. tk "tmux kill-server"
  325. tl "tmux ls"
  326. tn "tmux new -s"
  327. tnb "tmux new -s backup"
  328. #]]]
  329. usn "usernames --num 20"
  330. vmd "vimdiff"
  331. # wg "wego"
  332. wg "curl -L wthr.ml"
  333. wgm "curl -L wthr.ml/m"
  334. wgt "curl -L wthr.ml/t"
  335. ytd "youtube-dl"
  336. z "zathura --fork"
  337. lz "unzip -l"
  338. trl "tar tvzf"
  339. trx "tar xvzf"
  340. # pass [[[ #
  341. ps "pass"
  342. psc "pass -c"
  343. pse "pass edit"
  344. psi "pass insert -m"
  345. psg "pass generate -c"
  346. pss "pass show"
  347. xc "xclip -selection clipboard"
  348. yh "echo 'kevin.mok@live.ca' | xclip -selection clipboard"
  349. yg "xclip -selection clipboard ~/.password-store/social/gmail"
  350. yt "xclip -selection clipboard ~/.password-store/social/trapbot"
  351. yu "echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard"
  352. # ]]] pass #
  353. # watson [[[ #
  354. w "watson"
  355. # start [[[ #
  356. wa "watson start"
  357. wae "watson start && watson edit"
  358. wad "watson add -f '' -t ''"
  359. we "watson edit"
  360. wre "watson restart"
  361. wree "watson restart && watson edit"
  362. # ]]] start #
  363. # stop [[[ #
  364. ws "watson status && watson stop"
  365. wse "watson stop && watson edit"
  366. wsc "watson cancel"
  367. wsl "watson stop && watson log --day"
  368. wt "watson status"
  369. # ]]] stop #
  370. # log/report [[[ #
  371. wl "watson log -Gcd"
  372. wla "watson log -Gca -p"
  373. wlat "watson log -Gca -T"
  374. ww "watson log -Gc"
  375. wwb "watson log -Gc | bat"
  376. wr "watson report -Gcd"
  377. wra "watson report -Gca -p"
  378. wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3 | sed 's/ - /,/' | xsv table"
  379. wrat "watson report -Gca -T"
  380. wrw "watson report -Gc"
  381. # ]]] log/report #
  382. # ]]] watson #
  383. # ]]] applications #
  384. # git [[[ #
  385. g "git"
  386. gi "git init"
  387. gib "git init --bare"
  388. gstr "git config credential.helper store"
  389. gstrp "git config credential.helper store && git push"
  390. # branch [[[ #
  391. gb "git branch"
  392. gbd "git branch -D"
  393. gba "git branch --no-merged && echo '' && git branch --merged"
  394. gbu "git branch --no-merged"
  395. gbm "git branch --merged"
  396. gsm "git submodule"
  397. gsmp "git submodule foreach git pull"
  398. gsmu "git submodule update --recursive --remote"
  399. gmg "git merge"
  400. gmgts "git merge -X theirs"
  401. gmgt "git mergetool"
  402. gr "git remote -v"
  403. gra "git remote add origin"
  404. # grag "git remote add gitea git@ataraxy.tk:Kevin-Mok/.git"
  405. grr "git remote remove origin"
  406. grs "git remote show origin"
  407. gru "git branch --set-upstream-to=origin/master master"
  408. # ]]] branch #
  409. # add/remove [[[ #
  410. ga "git add -A && git status -u"
  411. gac "git add -A && git commit -S"
  412. gaf "git add -f"
  413. # unsigned commt
  414. gacu "git add -A && git commit"
  415. glf "git lfs"
  416. glfi "git lfs install"
  417. grm "git rm"
  418. grmf "git rm -f"
  419. grmc "git rm --cached"
  420. grmfc "git rm -f --cached"
  421. grmor "rm (fd -e orig --no-ignore -H)"
  422. # ]]] add/remove #
  423. # diff/log [[[ #
  424. gd "git diff -w"
  425. gdc "git diff --cached -w"
  426. gdh "git diff --cached -w HEAD~1"
  427. gds "git diff --stat"
  428. gdt "git difftool -w --tool=vimdiff"
  429. gdtc "git difftool -w --cached --tool=vimdiff"
  430. gl "git log"
  431. glm "git log master"
  432. gsl "git shortlog"
  433. # ]]] diff/log #
  434. # pull [[[ #
  435. gcl "git clone"
  436. gs "git status -u"
  437. gf "git fetch origin"
  438. gfg "git fetch gitea"
  439. gch "git checkout"
  440. gchn "git checkout -b"
  441. gchm "git checkout master"
  442. gchnw "git checkout -b wip"
  443. gchw "git checkout wip"
  444. gchh "git checkout HEAD --"
  445. grom "git reset --hard origin/master"
  446. gheadm1 "git reset --hard HEAD~1"
  447. # show files in git repo
  448. # gls "git ls-tree -r HEAD --name-only"
  449. gls "git ls-tree HEAD --name-only"
  450. gchp "git cherry-pick"
  451. gchpc "git cherry-pick --continue"
  452. gst "git stash"
  453. gstl "git stash list"
  454. gstp "git stash pop"
  455. gsts "git stash show stash@\{0\} -p"
  456. gclear "git stash clear"
  457. gpl "git pull --rebase"
  458. grb "git rebase -i"
  459. grba "git rebase --abort"
  460. grbc "git rebase --continue"
  461. # ]]] pull #
  462. # push [[[ #
  463. gc "git commit -S"
  464. gcu "git commit"
  465. gca "git add -A && git commit --amend --no-edit -S"
  466. gcam "git add -A && git commit --amend -S"
  467. gcap "git add -A && git commit --amend --no-edit -S && git push --force"
  468. psgi "git add -A && git commit -m 'Update' -S && git push"
  469. gps "git push"
  470. gpsg "git push gitea"
  471. # gpsi "git config credential.helper store && git push"
  472. # gpsn "git push --set-upstream origin master"
  473. gpsn "eval (git push 2>&1 | tail -n 2)"
  474. gpsf "git push --force"
  475. # assume file unchanged
  476. gunc "git update-index --assume-unchanged"
  477. # ]]] push #
  478. # ]]] git #
  479. # coding projs [[[ #
  480. tld "tldr"
  481. # fsl "zathura --fork ~/coding/fastest-languages.pdf"
  482. fsl "bat ~/Documents/fastest-languages/fastest-languages.md"
  483. rgt "rg TODO"
  484. # make [[[ #
  485. ma "printf '\033c' && bear make"
  486. mc "bear make clean"
  487. mca "bear make clean && printf '\033c' && bear make"
  488. rmc "rm compile_commands.json"
  489. # ]]] make #
  490. # chezmoi [[[ #
  491. zm "chezmoi"
  492. za "chezmoi add"
  493. zar "chezmoi add -r"
  494. zd "chezmoi data"
  495. zdf "chezmoi diff"
  496. zp "chezmoi -v apply"
  497. # ]]] chezmoi #
  498. # spotify-lib-vis [[[ #
  499. # start spv server outside dir
  500. ssv "source ../bin/activate.fish && python manage.py runserver"
  501. # open spv db in psql
  502. spvdb "psql -d spotifyvis -U django"
  503. mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv"
  504. cldb "python manage.py flush --no-input && ssv"
  505. # django shell
  506. djs "python manage.py shell"
  507. # update pip
  508. upip "pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U"
  509. # update pip req's.
  510. ureq "pip freeze > requirements.txt"
  511. # show last history scan
  512. hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/queries/history.sql | rg 2019 | tac"
  513. slg "tail -n 5 $spv_dir/src/api/management/commands/update-history.log"
  514. # scan history
  515. # hs "$spv_dir/src/update-history.sh && cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1"
  516. # removes all but newest file
  517. # rmol "ls -t | tail -n +2 | xargs rm -- && l"
  518. # snw "spotify-now -i '%artist - %title'"
  519. svd "pg_dump spotifyvis > spotifyvis.bak"
  520. # ]]] spotify-lib-vis #
  521. shc "shellcheck"
  522. tll "tllocalmgr"
  523. tli "tllocalmgr install"
  524. # tlh "tllocalmgr texhash"
  525. pdl "pdflatex"
  526. tcl "tex-clean"
  527. # grocery-finder [[[ #
  528. wl0 "watson log --all --project=309 --tag=phase2"
  529. wr0 "watson report --all --project=309 --tag=phase2"
  530. # server [[[ #
  531. no "node"
  532. ndm "nodemon"
  533. knd "killall node"
  534. mg "mongo"
  535. 0ht "cd ~/school/309-proj && python3 -m http.server"
  536. mgd "mongod --dbpath mongo-data"
  537. # nds "killall node && nodemon server.js"
  538. nds "nodemon server.js"
  539. # ]]] server #
  540. # heroku [[[ #
  541. hr "heroku"
  542. hrs "heroku local web"
  543. hrt "heroku ps"
  544. hrl "heroku logs --dyno web -n 1500 | rg up | awk '{ system(\"date -d \" \$1); \$1 = \"\"; print \$0 }' | paste -s -d' \n'"
  545. gpsh "git push heroku"
  546. 0c "node collections.js"
  547. # ]]] heroku #
  548. # ]]] 309 #
  549. # mfs [[[ #
  550. pyh "python -m http.server"
  551. # j "jekyll"
  552. # js "jekyll serve"
  553. hu "hugo"
  554. hd "hugo server -D --disableFastRender --bind 192.168.0.10 --baseURL 'http://192.168.0.10:1313'"
  555. hg "hugo serve --disableFastRender"
  556. # ]]] mfs #
  557. ssb "ssh-bandit"
  558. rt "python ~/coding/rt-scraper/!rt-scraper.py"
  559. # ada-mario [[[ #
  560. mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_head"
  561. med "printf '\033c' && bear make clean eye_detector && ./eye_detector"
  562. mft "printf '\033c' && bear make clean face_detector && ./face_detector"
  563. rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out"
  564. gpsb "git push bitbucket"
  565. # ]]] ada-mario #
  566. sac "source ../../bin/activate.fish"
  567. dea "deactivate"
  568. whe "watch echo"
  569. nst "cp ~/Documents/workout-logs/stretching.md /tmp && nvim /tmp/stretching.md"
  570. # ]]] coding projs #
  571. # games [[[ #
  572. wlm "watson log --all --project=minetest"
  573. wrm "watson report --all --project=minetest"
  574. wamv "watson start minetest +video"
  575. mtg "minetest"
  576. mts "minetestserver"
  577. mtsc "minetestserver --gameid minetest --worldname Creative --terminal"
  578. # mtsh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal"
  579. mtsh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal"
  580. mtsv "minetestserver --gameid minimal --worldname Test --terminal"
  581. # mtrsy "rsync -vr .minetest/ /mnt/linux-files/.minetest/"
  582. tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard"
  583. shrg "printf '¯\\\\\\\\\\_(ツ)_/¯' | xclip -selection clipboard"
  584. # ]]] games #
  585. # school [[[ #
  586. # basic
  587. # wlf "watson log --all --tag=final"
  588. # wrf "watson report --all --tag=final"
  589. gpa "column -ts',' ~/Documents/gpa.md"
  590. ssc "mosh mokkar@teach.cs.utoronto.ca"
  591. # 324
  592. rhs "clear && tmux clear-history && runhaskell Ex3.hs"
  593. rk "clear && tmux clear-history && raco test"
  594. rki "racket -l racket/base -i"
  595. rke "clear && tmux clear-history && raco test ex1.rkt"
  596. # 384
  597. rgp "clear && tmux clear-history && rg -S -t py"
  598. 8aa "clear && tmux clear-history && python2 autograder.py"
  599. # ]]] school #