Browse Source

458 aliases

aws
Kevin Mok 2 years ago
parent
commit
be2e73fda6
No known key found for this signature in database GPG Key ID: C072BD80DB66DE18
  1. 41
      aliases/key_aliases.tmpl
  2. 52
      aliases/key_dirs.tmpl
  3. 8
      aliases/key_files.tmpl
  4. 6
      dot_Xresources.tmpl
  5. 4
      dot_config/fish/functions/discord-burner.fish
  6. 10
      dot_config/i3/config.tmpl
  7. 5
      dot_config/i3blocks/i3blocks.conf.tmpl
  8. 2
      dot_config/kitty/kitty.conf
  9. 2
      dot_config/mimeapps.list
  10. 1
      dot_gitconfig.tmpl
  11. 4
      dot_taskrc
  12. 12
      dot_vimrc.tmpl
  13. 3
      scripts/executable_ticker

41
aliases/key_aliases.tmpl

@ -432,6 +432,7 @@ kt "killall thunderbird"
m "mpv" m "mpv"
mp "mpv --volume=50" mp "mpv --volume=50"
# lo "libreoffice" # lo "libreoffice"
lop "libreoffice --headless --convert-to pdf --outdir ."
m "mpv" m "mpv"
mpvv "mpv --volume=50" mpvv "mpv --volume=50"
mpl "mpv --loop" 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" tar2 "tmux a -t red-hat-2 || tmux new -s red-hat-2"
tas "tmux a -t school || tmux new -s school" tas "tmux a -t school || tmux new -s school"
tas2 "tmux a -t school-2 || tmux new -s school-2" 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" tal "tmux a"
tc "clear && tmux clear-history" tc "clear && tmux clear-history"
tk "tmux kill-server" tk "tmux kill-server"
@ -575,7 +578,8 @@ tt "timetrace"
tta "timetrace start" tta "timetrace start"
ttaa "timetrace start a3@300" ttaa "timetrace start a3@300"
tte "timetrace edit record latest" tte "timetrace edit record latest"
ttc "timetrace create"
# ttc "timetrace create"
ttc "timetrace create project"
ttp "timetrace create project" ttp "timetrace create project"
ttlp "timetrace list projects" ttlp "timetrace list projects"
ttlr "timetrace list records today" ttlr "timetrace list records today"
@ -920,7 +924,7 @@ nps "npm start"
# pu "python ~/coding/rarity-sniper/opensea.py update" # pu "python ~/coding/rarity-sniper/opensea.py update"
po "python manage.py opensea" po "python manage.py opensea"
pr "python manage.py rarity"
# pr "python manage.py rarity"
bz "python manage.py rarity -t Bitz -n" bz "python manage.py rarity -t Bitz -n"
pmp "python manage.py makemigrations project" pmp "python manage.py makemigrations project"
srs "source ~/.venv/rarity-sniper/bin/activate.fish" srs "source ~/.venv/rarity-sniper/bin/activate.fish"
@ -937,7 +941,10 @@ ssr "mosh 161.35.107.30"
# ]]] rarity surf # # ]]] 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 # # ]]] 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'" fnp "t timeline FNProgress | sed -n '2p'"
fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &" fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &"
mip "ifuse /mnt/ipad"
umip "fusermount -u /mnt/ipad"
# ]]] games # # ]]] games #
# school [[[ # # school [[[ #
@ -998,15 +1008,7 @@ fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &"
gpa "column -ts',' ~/Documents/gpa.md" gpa "column -ts',' ~/Documents/gpa.md"
ssc "mosh mokkar@teach.cs.utoronto.ca" 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" spc "source ~/.venv/price-calc/bin/activate.fish"
scv "source ~/.venv/covid-monitor/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" pmdu "python manage.py db upgrade"
# pt "pytest --cov" # 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 # # ]]] school #
# red-hat [[[ # # red-hat [[[ #

52
aliases/key_dirs.tmpl

@ -7,7 +7,7 @@ cf ~/linux-config/dot_config
cfd ~/.config cfd ~/.config
cff ~/.config/fish cff ~/.config/fish
ch ~/Documents/chat ch ~/Documents/chat
da /mnt/ipad
da /mnt/ipad/DCIM/100APPLE
dl ~/Downloads dl ~/Downloads
# dw ~/dwm # dw ~/dwm
D ~/Documents D ~/Documents
@ -70,6 +70,7 @@ ft ~/coding/face-tracker
hv ~/Documents/hevin hv ~/Documents/hevin
hvs ~/Documents/hevin/shopping hvs ~/Documents/hevin/shopping
j ~/Documents/journal j ~/Documents/journal
jt ~/Documents/journal/todo
lh ~/Documents/listening-history lh ~/Documents/listening-history
mmd ~/coding/move-mouse-with-head mmd ~/coding/move-mouse-with-head
mh ~/coding/mf-site/layouts mh ~/coding/mf-site/layouts
@ -78,14 +79,15 @@ msl ~/coding/mf-site/content/letter
# mp ~/coding/mf-site/static/pdf # mp ~/coding/mf-site/static/pdf
pk ~/Documents/journal/packing-lists pk ~/Documents/journal/packing-lists
pn ~/coding/red-discord-bot 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 rsf ~/coding/rarity-surf/frontend
rsc ~/coding/rarity-surf/backend/rarity_check/project/management/commands 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 sv ~/coding/spotify-lib-vis/src
svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts
swd ~/coding/swex swd ~/coding/swex
tb ~/coding/trapbot/src/trapbot
# tb ~/coding/trapbot/src/trapbot
tb ~/coding/twitter-bot
ur ~/coding/uranium-godot ur ~/coding/uranium-godot
# wo ~/Documents/workout-logs # wo ~/Documents/workout-logs
@ -139,6 +141,7 @@ fnm ~/Documents/fortnite/pics/maps
fnn ~/Documents/fortnite/notes fnn ~/Documents/fortnite/notes
fns ~/Documents/fortnite/stats/api fns ~/Documents/fortnite/stats/api
fnv /mnt/linux-files/Videos/personal-fortnite-games/review 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 tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader
# ]]] fortnite # # ]]] fortnite #
@ -151,7 +154,7 @@ twt ~/Documents/twitter
sdv ~/Documents/stardew-valley-aha sdv ~/Documents/stardew-valley-aha
wo ~/Documents/workout-logs/3
wo ~/Documents/workout-logs/7
# ]]] gaming # # ]]] gaming #
@ -160,35 +163,25 @@ wo ~/Documents/workout-logs/3
sc ~/school sc ~/school
lt ~/school/latex-notes 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 # # ]]] sch #
@ -262,4 +255,5 @@ nxo ~/coding/kogito/nexus-operator
# ]]] pey # # ]]] pey #
mb ~/coding/mint-bot mb ~/coding/mint-bot
pfps ~/Pictures/profile-pics/sappy-seals
nft ~/Documents/nft nft ~/Documents/nft

8
aliases/key_files.tmpl

@ -45,7 +45,7 @@ hh ~/.habitctl/habits
hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id ~/Documents/journal/todo/ideas.md id ~/Documents/journal/todo/ideas.md
ig ./.gitignore ig ./.gitignore
jt ~/Documents/journal/todo/22/2.md
jt ~/Documents/journal/todo/22/8.md
k ~/linux-config/dot_config/kitty/kitty.conf k ~/linux-config/dot_config/kitty/kitty.conf
lh ~/Documents/listening-history/polarbier.csv lh ~/Documents/listening-history/polarbier.csv
mc ~/coding/mf-site/assets/sass/main.scss mc ~/coding/mf-site/assets/sass/main.scss
@ -68,7 +68,7 @@ wt ~/.config/watson/state.tmp
# sch [[[ # # sch [[[ #
lb ~/coding/linux-basics/linux-basics.md
sr ~/school/458/a1/router/sr_router.c
# ]]] sch # # ]]] sch #
@ -79,6 +79,7 @@ cmr ~/Documents/codm/discord-recruitment.md
cra ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/attribs.json 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 crm ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/monsters.json
fn ~/Documents/fortnite/notes/fortnite-notes.md fn ~/Documents/fortnite/notes/fortnite-notes.md
fb ~/Documents/fortnite/notes/building-drills.md
fp ~/Documents/fortnite/notes/post.md fp ~/Documents/fortnite/notes/post.md
fv ~/Documents/fortnite/notes/vods.md fv ~/Documents/fortnite/notes/vods.md
mta ~/.minetest/clientmods/custom_aliases/init.lua mta ~/.minetest/clientmods/custom_aliases/init.lua
@ -107,4 +108,7 @@ rt ~/Documents/red-hat/todo.md
# ]]] pey # # ]]] pey #
nf ~/Documents/twitter/nft.md nf ~/Documents/twitter/nft.md
ra ~/Documents/chat/reddit/avatar.md
ds ~/Documents/nft/deep-sea-research.md ds ~/Documents/nft/deep-sea-research.md
wo ~/Documents/workout-logs/7/running.md

6
dot_Xresources.tmpl

@ -24,13 +24,15 @@ Xft.rgba: rgb
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.hostname "x1-carbon" }}
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11 URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=10 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=10
URxvt*cursorBlink: 0
! URxvt*cursorBlink: 0
URxvt*cursorBlink: False URxvt*cursorBlink: False
{{ else }} {{ else }}
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15 ! 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=14
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5 ! 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 }} {{ end }}
! URxvt.font: xft:Hack:size=18 ! URxvt.font: xft:Hack:size=18

4
dot_config/fish/functions/discord-burner.fish

@ -2,8 +2,8 @@ function discord-burner
# echo nordvpn connect ca1$argv[1] && curl ifconfig.me # echo nordvpn connect ca1$argv[1] && curl ifconfig.me
# nordvpn connect ca1$argv[1] && \ # nordvpn connect ca1$argv[1] && \
# nordvpn connect ca10$argv[1] # nordvpn connect ca10$argv[1]
nordvpn connect
curl ifconfig.me
# nordvpn connect
# curl ifconfig.me
if test (count $argv) -gt 1 if test (count $argv) -gt 1
firefox -P discord-$argv[2] $argv[1] & firefox -P discord-$argv[2] $argv[1] &
else else

10
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 $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 $ws3; exec $browser'
# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # 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 $ws6; exec discord
# exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' # 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 workspace $ws1 output $secondary
bindsym $mod+F1 workspace $ws1; exec $term bindsym $mod+F1 workspace $ws1; exec $term
bindsym Mod4+$mod+F1 workspace $ws1; exec chatterino 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 $ws2 "2 "
set $work_laptop_ip "192.168.0.11" set $work_laptop_ip "192.168.0.11"
@ -342,8 +342,8 @@ workspace $ws2 output $secondary
bindsym $mod+F2 workspace $ws2; exec $term 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 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 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 bindsym $mod+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt-2
# ws3 [[[ # # ws3 [[[ #

5
dot_config/i3blocks/i3blocks.conf.tmpl

@ -20,6 +20,11 @@ color=#cbe4ff
# TICKER=BTC-USD # TICKER=BTC-USD
# interval=30 # interval=30
[ticker]
label=SOL 
TICKER=SOL-USD
interval=30
[ticker] [ticker]
label=ETH  label=ETH 
TICKER=ETH-USD TICKER=ETH-USD

2
dot_config/kitty/kitty.conf

@ -1,3 +1,5 @@
confirm_os_window_close 0
include ~/.cache/wal/colors-kitty.conf include ~/.cache/wal/colors-kitty.conf
# background_opacity .7 # background_opacity .7
# background_opacity .8 # background_opacity .8

2
dot_config/mimeapps.list

@ -18,6 +18,7 @@ image/jpeg=sxiv.desktop
image/png=sxiv.desktop image/png=sxiv.desktop
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop
video/mp4=mpv.desktop
[Added Associations] [Added Associations]
x-scheme-handler/http=firefox.desktop; x-scheme-handler/http=firefox.desktop;
@ -32,3 +33,4 @@ application/json=firefox.desktop;
image/jpeg=gimp.desktop;imv.desktop; image/jpeg=gimp.desktop;imv.desktop;
text/markdown=nvim.desktop; text/markdown=nvim.desktop;
image/png=imv.desktop; image/png=imv.desktop;
video/mp4=mpv.desktop;

1
dot_gitconfig.tmpl

@ -9,6 +9,7 @@
autocrlf = input autocrlf = input
[push] [push]
default = simple default = simple
autoSetupRemote = true
[merge] [merge]
tool = vimdiff tool = vimdiff
conflictstyle = diff3 conflictstyle = diff3

4
dot_taskrc

@ -84,8 +84,8 @@ context.sch=project:sch
# context=home # context=home
# context=out # context=out
# context=sch
context=mny
context=sch
# context=mny
# context=pey # context=pey
# context=not-pey # context=not-pey
# }}} context # # }}} context #

12
dot_vimrc.tmpl

@ -488,6 +488,7 @@ vnoremap <leader>r q:is///g<ESC>3ha
nnoremap <leader>ra q:i%s///g<ESC>2F/i nnoremap <leader>ra q:i%s///g<ESC>2F/i
" remove italics tags " remove italics tags
nnoremap <leader>rmi :%s/<\/\?i>//g<CR> nnoremap <leader>rmi :%s/<\/\?i>//g<CR>
nnoremap <leader>rn :YcmCompleter RefactorRename
nnoremap <leader>rs :res nnoremap <leader>rs :res
" reload vim config " reload vim config
nnoremap <leader>rv :source $MYVIMRC<CR> nnoremap <leader>rv :source $MYVIMRC<CR>
@ -566,9 +567,14 @@ let maplocalleader="\\"
" tex [[[ " " tex [[[ "
autocmd Filetype tex noremap i$ :<C-u>normal! T$vt$<CR>
autocmd Filetype tex noremap i$ :normal vi$<CR>
autocmd Filetype tex xnoremap a$ :<C-u> normal!F$vf$<CR>
autocmd Filetype tex onoremap a$ :normal va$<CR>
autocmd Filetype tex inoremap <localleader>bt \bowtie autocmd Filetype tex inoremap <localleader>bt \bowtie
autocmd Filetype tex inoremap <localleader>c \checkmark autocmd Filetype tex inoremap <localleader>c \checkmark
autocmd Filetype tex inoremap <localleader>d \delta
autocmd Filetype tex inoremap <localleader>d \div
autocmd Filetype tex inoremap <localleader>D \Delta autocmd Filetype tex inoremap <localleader>D \Delta
autocmd Filetype tex inoremap <localleader>e \exists autocmd Filetype tex inoremap <localleader>e \exists
autocmd Filetype tex inoremap <localleader>ep \epsilon autocmd Filetype tex inoremap <localleader>ep \epsilon
@ -579,6 +585,7 @@ autocmd Filetype tex inoremap <localleader>la \leftarrow
autocmd Filetype tex inoremap <localleader>le \leq autocmd Filetype tex inoremap <localleader>le \leq
autocmd Filetype tex inoremap <localleader>ln \log n autocmd Filetype tex inoremap <localleader>ln \log n
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
autocmd Filetype tex inoremap <localleader>m \mu
" autocmd Filetype tex inoremap <localleader>n \neg " autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>n \neq autocmd Filetype tex inoremap <localleader>n \neq
autocmd Filetype tex inoremap <localleader>N \mathbb{N} autocmd Filetype tex inoremap <localleader>N \mathbb{N}
@ -587,7 +594,8 @@ autocmd Filetype tex inoremap <localleader>ph [,phantom]
autocmd Filetype tex inoremap <localleader>q \qquad autocmd Filetype tex inoremap <localleader>q \qquad
autocmd Filetype tex inoremap <localleader>r \rightarrow autocmd Filetype tex inoremap <localleader>r \rightarrow
autocmd Filetype tex inoremap <localleader>R \Rightarrow autocmd Filetype tex inoremap <localleader>R \Rightarrow
autocmd Filetype tex inoremap <localleader>s \subset
" autocmd Filetype tex inoremap <localleader>s \subset
autocmd Filetype tex inoremap <localleader>s \text{s}
autocmd Filetype tex inoremap <localleader>st such that autocmd Filetype tex inoremap <localleader>st such that
autocmd Filetype tex inoremap <localleader>S \Sigma autocmd Filetype tex inoremap <localleader>S \Sigma
autocmd Filetype tex inoremap <localleader>t \times autocmd Filetype tex inoremap <localleader>t \times

3
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 elif [[ "$symbol" == "BTC-USD" || "$symbol" == "ETH-USD" ]]; then
# echo "$price" | cut -c 2-3 # echo "$price" | cut -c 2-3
echo "$price" | cut -c -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 elif (( $(echo "$price > 10000" | bc -l) )); then
printf "%'0.0f\n" "$price" | cut -c 2-4 printf "%'0.0f\n" "$price" | cut -c 2-4
# elif (( $(echo "$price < 1" | bc -l) )); then # elif (( $(echo "$price < 1" | bc -l) )); then

Loading…
Cancel
Save