diff --git a/aliases/key_aliases.tmpl b/aliases/key_aliases.tmpl index b89d120..f5509e8 100644 --- a/aliases/key_aliases.tmpl +++ b/aliases/key_aliases.tmpl @@ -432,6 +432,7 @@ kt "killall thunderbird" m "mpv" mp "mpv --volume=50" # lo "libreoffice" +lop "libreoffice --headless --convert-to pdf --outdir ." m "mpv" mpvv "mpv --volume=50" mpl "mpv --loop" @@ -477,6 +478,8 @@ tarh "tmux a -t red-hat || tmux new -s red-hat" tar2 "tmux a -t red-hat-2 || tmux new -s red-hat-2" tas "tmux a -t school || tmux new -s school" tas2 "tmux a -t school-2 || tmux new -s school-2" +tas3 "tmux a -t school-3 || tmux new -s school-3" +tas4 "tmux a -t school-4 || tmux new -s school-4" tal "tmux a" tc "clear && tmux clear-history" tk "tmux kill-server" @@ -575,7 +578,8 @@ tt "timetrace" tta "timetrace start" ttaa "timetrace start a3@300" tte "timetrace edit record latest" -ttc "timetrace create" +# ttc "timetrace create" +ttc "timetrace create project" ttp "timetrace create project" ttlp "timetrace list projects" ttlr "timetrace list records today" @@ -920,7 +924,7 @@ nps "npm start" # pu "python ~/coding/rarity-sniper/opensea.py update" po "python manage.py opensea" -pr "python manage.py rarity" +# pr "python manage.py rarity" bz "python manage.py rarity -t Bitz -n" pmp "python manage.py makemigrations project" srs "source ~/.venv/rarity-sniper/bin/activate.fish" @@ -937,7 +941,10 @@ ssr "mosh 161.35.107.30" # ]]] rarity surf # - +stb "source ~/.venv/twitter-bot/bin/activate.fish" +pr "python retweet.py" +prg "python retweet.py --giveaway" +prm "python retweet.py --mentions | bat" # ]]] coding projs # @@ -988,6 +995,9 @@ wob "watch -n60 'lsd -lF --group-dirs first --size short 2020*.mkv'" fnp "t timeline FNProgress | sed -n '2p'" fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &" +mip "ifuse /mnt/ipad" +umip "fusermount -u /mnt/ipad" + # ]]] games # # school [[[ # @@ -998,15 +1008,7 @@ fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &" gpa "column -ts',' ~/Documents/gpa.md" ssc "mosh mokkar@teach.cs.utoronto.ca" -# alg course -jc "javac -d out *.java" -jr "java -cp \"$CLASSPATH:out\"" - -# 263 -wl6 "watson log --all --project=263 --tag=a5" -wr6 "watson report --all --project=263 --tag=a5" -z6 "zathura --fork ~/school/263/Introduction-to-Algorithms-CLRs/Introduction\ to\ Algorithms\ -\ 3rd\ Edition.pdf" -pd6 "pdflatex a5" +# 301 [[[ # spc "source ~/.venv/price-calc/bin/activate.fish" scv "source ~/.venv/covid-monitor/bin/activate.fish" @@ -1016,6 +1018,21 @@ pmdm "python manage.py db migrate" pmdu "python manage.py db upgrade" # pt "pytest --cov" +# ]]] 301 # + +# 458 [[[ # + +ssm "ssh -p 2222 mininet@localhost" +rs "rsync *.c *.h -Pave 'ssh -p 2222' mininet@127.0.0.1:~/pa1/router/" +rsw "rsync -PavIe 'ssh -p 2222' mininet@127.0.0.1:~/pa1/router/sr-.pcap ." +trm "tar czf pa1.tar.gz *" +# trm "make compress" +trxm "tar xf pa1.tar.gz" +cpt "cp pa1.tar.gz /home/kevin/school/458/a1/router" +xcd "date | xclip -selection clipboard" + +# ]]] 458 # + # ]]] school # # red-hat [[[ # diff --git a/aliases/key_dirs.tmpl b/aliases/key_dirs.tmpl index a1541c6..2b02727 100644 --- a/aliases/key_dirs.tmpl +++ b/aliases/key_dirs.tmpl @@ -7,7 +7,7 @@ cf ~/linux-config/dot_config cfd ~/.config cff ~/.config/fish ch ~/Documents/chat -da /mnt/ipad +da /mnt/ipad/DCIM/100APPLE dl ~/Downloads # dw ~/dwm D ~/Documents @@ -70,6 +70,7 @@ ft ~/coding/face-tracker hv ~/Documents/hevin hvs ~/Documents/hevin/shopping j ~/Documents/journal +jt ~/Documents/journal/todo lh ~/Documents/listening-history mmd ~/coding/move-mouse-with-head mh ~/coding/mf-site/layouts @@ -78,14 +79,15 @@ msl ~/coding/mf-site/content/letter # mp ~/coding/mf-site/static/pdf pk ~/Documents/journal/packing-lists pn ~/coding/red-discord-bot -rs ~/coding/rarity-surf/backend/rarity_check/project +# rs ~/coding/rarity-surf/backend/rarity_check/project rsf ~/coding/rarity-surf/frontend rsc ~/coding/rarity-surf/backend/rarity_check/project/management/commands -rsm ~/coding/rarity-surf/backend/rarity_check/project/migrations +# rsm ~/coding/rarity-surf/backend/rarity_check/project/migrations sv ~/coding/spotify-lib-vis/src svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts swd ~/coding/swex -tb ~/coding/trapbot/src/trapbot +# tb ~/coding/trapbot/src/trapbot +tb ~/coding/twitter-bot ur ~/coding/uranium-godot # wo ~/Documents/workout-logs @@ -139,6 +141,7 @@ fnm ~/Documents/fortnite/pics/maps fnn ~/Documents/fortnite/notes fns ~/Documents/fortnite/stats/api fnv /mnt/linux-files/Videos/personal-fortnite-games/review +fnv2 /mnt/linux-files-2/Videos/ipad/fortnite/name tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader # ]]] fortnite # @@ -151,7 +154,7 @@ twt ~/Documents/twitter sdv ~/Documents/stardew-valley-aha -wo ~/Documents/workout-logs/3 +wo ~/Documents/workout-logs/7 # ]]] gaming # @@ -160,35 +163,25 @@ wo ~/Documents/workout-logs/3 sc ~/school lt ~/school/latex-notes +3 ~/school/318 +3a ~/school/318/a3 -# 301 [[[ # +# 458 [[[ # -1 ~/school/301 -1a ~/school/301/a2 -1af ~/school/301/a1/price-calc/src -# 1ab ~/school/301/a1/backend -1ab ~/school/301/todo-app-medium-demo/flask_app -1as ~/school/301/a2/scripts -1apr ~/coding/pull-requests/301/a1 -1d ~/school/301/korotu/deliverables/deliverable-2/minter/src -1d3 ~/school/301/korotu/deliverables/deliverable-3 -1dc ~/school/301/korotu/deliverables/deliverable-2/nft-contract -1k ~/school/301/korotu -1kd ~/school/301/korotu/deliverables/deliverable-1 -1pr ~/coding/pull-requests/301/d3 +4 ~/school/458 +4a ~/school/458/a1/router +4a2 ~/school/458/a1-2/router +4a3 ~/school/458/a1-3/router +4as ~/school/458/a1-sol/router +4i ~/school/458/a1-instr +4t ~/school/458/a1-tar/PA1 -# ]]] 301 # +4p ~/school/latex-notes/458/ps1 +4s ~/school/458/slides -# solidity [[[ # +# ]]] 458 # -sl ~/coding/solidity -shd ~/coding/solidity/dotenv -shw ~/coding/solidity/hello-world -shws ~/coding/solidity/hello-world-part-four-tutorial/starter-files/src -snf ~/coding/solidity/nft -snm ~/coding/solidity/nft-minter-tutorial/minter-starter-files/src - -# ]]] solidity # +ltc ~/coding/leetcode # ]]] sch # @@ -262,4 +255,5 @@ nxo ~/coding/kogito/nexus-operator # ]]] pey # mb ~/coding/mint-bot +pfps ~/Pictures/profile-pics/sappy-seals nft ~/Documents/nft diff --git a/aliases/key_files.tmpl b/aliases/key_files.tmpl index fb1782a..ccab889 100644 --- a/aliases/key_files.tmpl +++ b/aliases/key_files.tmpl @@ -45,7 +45,7 @@ hh ~/.habitctl/habits hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log id ~/Documents/journal/todo/ideas.md ig ./.gitignore -jt ~/Documents/journal/todo/22/2.md +jt ~/Documents/journal/todo/22/8.md k ~/linux-config/dot_config/kitty/kitty.conf lh ~/Documents/listening-history/polarbier.csv mc ~/coding/mf-site/assets/sass/main.scss @@ -68,7 +68,7 @@ wt ~/.config/watson/state.tmp # sch [[[ # -lb ~/coding/linux-basics/linux-basics.md +sr ~/school/458/a1/router/sr_router.c # ]]] sch # @@ -79,6 +79,7 @@ cmr ~/Documents/codm/discord-recruitment.md cra ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/attribs.json crm ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/monsters.json fn ~/Documents/fortnite/notes/fortnite-notes.md +fb ~/Documents/fortnite/notes/building-drills.md fp ~/Documents/fortnite/notes/post.md fv ~/Documents/fortnite/notes/vods.md mta ~/.minetest/clientmods/custom_aliases/init.lua @@ -107,4 +108,7 @@ rt ~/Documents/red-hat/todo.md # ]]] pey # nf ~/Documents/twitter/nft.md +ra ~/Documents/chat/reddit/avatar.md ds ~/Documents/nft/deep-sea-research.md + +wo ~/Documents/workout-logs/7/running.md diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl index b2ac08c..0b7e77e 100644 --- a/dot_Xresources.tmpl +++ b/dot_Xresources.tmpl @@ -24,13 +24,15 @@ Xft.rgba: rgb {{ if eq .chezmoi.hostname "x1-carbon" }} URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=10 -URxvt*cursorBlink: 0 +! URxvt*cursorBlink: 0 URxvt*cursorBlink: False {{ else }} ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=14 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5 -URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12 +! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12 +! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11 +URxvt.font: xft:Hack Nerd Font Mono:size=11 {{ end }} ! URxvt.font: xft:Hack:size=18 diff --git a/dot_config/fish/functions/discord-burner.fish b/dot_config/fish/functions/discord-burner.fish index ade3d06..ab10b8e 100644 --- a/dot_config/fish/functions/discord-burner.fish +++ b/dot_config/fish/functions/discord-burner.fish @@ -2,8 +2,8 @@ function discord-burner # echo nordvpn connect ca1$argv[1] && curl ifconfig.me # nordvpn connect ca1$argv[1] && \ # nordvpn connect ca10$argv[1] - nordvpn connect - curl ifconfig.me + # nordvpn connect + # curl ifconfig.me if test (count $argv) -gt 1 firefox -P discord-$argv[2] $argv[1] & else diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 93c4e43..f5a9108 100755 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -21,7 +21,7 @@ exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editi # exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' -exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' +# exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' exec --no-startup-id i3-msg workspace $ws6; exec discord # exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' @@ -333,8 +333,8 @@ set $main "HDMI-0" workspace $ws1 output $secondary bindsym $mod+F1 workspace $ws1; exec $term bindsym Mod4+$mod+F1 workspace $ws1; exec chatterino -# bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach school' -bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach nft' +bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach school' +# bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach nft' set $ws2 "2 " set $work_laptop_ip "192.168.0.11" @@ -342,8 +342,8 @@ workspace $ws2 output $secondary bindsym $mod+F2 workspace $ws2; exec $term # bindsym Control+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach fortnite' -bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach nft-2' -# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach school-2' +# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach nft-2' +bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach school-2' bindsym $mod+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt-2 # ws3 [[[ # diff --git a/dot_config/i3blocks/i3blocks.conf.tmpl b/dot_config/i3blocks/i3blocks.conf.tmpl index dabb3df..0138687 100755 --- a/dot_config/i3blocks/i3blocks.conf.tmpl +++ b/dot_config/i3blocks/i3blocks.conf.tmpl @@ -20,6 +20,11 @@ color=#cbe4ff # TICKER=BTC-USD # interval=30 +[ticker] +label=SOL  +TICKER=SOL-USD +interval=30 + [ticker] label=ETH  TICKER=ETH-USD diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index c6fc4f8..d5c699f 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -1,3 +1,5 @@ +confirm_os_window_close 0 + include ~/.cache/wal/colors-kitty.conf # background_opacity .7 # background_opacity .8 diff --git a/dot_config/mimeapps.list b/dot_config/mimeapps.list index 4a5ebd1..f2cd817 100644 --- a/dot_config/mimeapps.list +++ b/dot_config/mimeapps.list @@ -18,6 +18,7 @@ image/jpeg=sxiv.desktop image/png=sxiv.desktop x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop +video/mp4=mpv.desktop [Added Associations] x-scheme-handler/http=firefox.desktop; @@ -32,3 +33,4 @@ application/json=firefox.desktop; image/jpeg=gimp.desktop;imv.desktop; text/markdown=nvim.desktop; image/png=imv.desktop; +video/mp4=mpv.desktop; diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 005bc00..1c55249 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -9,6 +9,7 @@ autocrlf = input [push] default = simple + autoSetupRemote = true [merge] tool = vimdiff conflictstyle = diff3 diff --git a/dot_taskrc b/dot_taskrc index b5743b9..17fca48 100644 --- a/dot_taskrc +++ b/dot_taskrc @@ -84,8 +84,8 @@ context.sch=project:sch # context=home # context=out -# context=sch -context=mny +context=sch +# context=mny # context=pey # context=not-pey # }}} context # diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index 7b5e54f..8e4b0ff 100644 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -488,6 +488,7 @@ vnoremap r q:is///g3ha nnoremap ra q:i%s///g2F/i " remove italics tags nnoremap rmi :%s/<\/\?i>//g +nnoremap rn :YcmCompleter RefactorRename nnoremap rs :res " reload vim config nnoremap rv :source $MYVIMRC @@ -566,9 +567,14 @@ let maplocalleader="\\" " tex [[[ " +autocmd Filetype tex noremap i$ :normal! T$vt$ +autocmd Filetype tex noremap i$ :normal vi$ +autocmd Filetype tex xnoremap a$ : normal!F$vf$ +autocmd Filetype tex onoremap a$ :normal va$ + autocmd Filetype tex inoremap bt \bowtie autocmd Filetype tex inoremap c \checkmark -autocmd Filetype tex inoremap d \delta +autocmd Filetype tex inoremap d \div autocmd Filetype tex inoremap D \Delta autocmd Filetype tex inoremap e \exists autocmd Filetype tex inoremap ep \epsilon @@ -579,6 +585,7 @@ autocmd Filetype tex inoremap la \leftarrow autocmd Filetype tex inoremap le \leq autocmd Filetype tex inoremap ln \log n autocmd Filetype tex inoremap lr \Leftrightarrow +autocmd Filetype tex inoremap m \mu " autocmd Filetype tex inoremap n \neg autocmd Filetype tex inoremap n \neq autocmd Filetype tex inoremap N \mathbb{N} @@ -587,10 +594,11 @@ autocmd Filetype tex inoremap ph [,phantom] autocmd Filetype tex inoremap q \qquad autocmd Filetype tex inoremap r \rightarrow autocmd Filetype tex inoremap R \Rightarrow -autocmd Filetype tex inoremap s \subset +" autocmd Filetype tex inoremap s \subset +autocmd Filetype tex inoremap s \text{s} autocmd Filetype tex inoremap st such that autocmd Filetype tex inoremap S \Sigma -autocmd Filetype tex inoremap t \times +autocmd Filetype tex inoremap t \times " autocmd Filetype tex inoremap T $T$ autocmd Filetype tex inoremap T \Theta " replace bars/underscores in URL diff --git a/scripts/executable_ticker b/scripts/executable_ticker index 2adc1ea..772f09d 100755 --- a/scripts/executable_ticker +++ b/scripts/executable_ticker @@ -89,6 +89,9 @@ for symbol in $(IFS=' '; echo "${SYMBOLS[*]}" | tr '[:lower:]' '[:upper:]'); do elif [[ "$symbol" == "BTC-USD" || "$symbol" == "ETH-USD" ]]; then # echo "$price" | cut -c 2-3 echo "$price" | cut -c -3 + elif [[ "$symbol" == "SOL-USD" ]]; then + # echo "$price" | cut -c -4 + echo "$price" | cut -c -5 elif (( $(echo "$price > 10000" | bc -l) )); then printf "%'0.0f\n" "$price" | cut -c 2-4 # elif (( $(echo "$price < 1" | bc -l) )); then