Setup task, AWS aliases
This commit is contained in:
@@ -126,7 +126,8 @@ ssl "mosh --ssh='ssh -p 399' kevin@$LAPTOP_IP"
|
|||||||
|
|
||||||
# vultr
|
# vultr
|
||||||
# ssa "mosh atxadmin@45.32.87.10"
|
# ssa "mosh atxadmin@45.32.87.10"
|
||||||
ssa "ssh -t kevin@3.147.85.36 tmux a"
|
ssa "ssh -i ~/.ssh/ai16z-test.pem ai16z@54.197.220.164"
|
||||||
|
ssaw "ssh -t kevin@3.147.85.36 tmux a"
|
||||||
# ssv "mosh kevin@45.32.87.10"
|
# ssv "mosh kevin@45.32.87.10"
|
||||||
|
|
||||||
# test server sites
|
# test server sites
|
||||||
@@ -359,6 +360,7 @@ am "antimicro"
|
|||||||
a "task"
|
a "task"
|
||||||
aa "task add"
|
aa "task add"
|
||||||
aal "task add proj:lnx"
|
aal "task add proj:lnx"
|
||||||
|
aan "task add proj:anp"
|
||||||
aap "task add proj:"
|
aap "task add proj:"
|
||||||
aas "task add proj:sch"
|
aas "task add proj:sch"
|
||||||
# aam "task add proj:ms"
|
# aam "task add proj:ms"
|
||||||
@@ -446,7 +448,8 @@ it "sxiv -t *"
|
|||||||
kill "kill -9"
|
kill "kill -9"
|
||||||
#kal "killall"
|
#kal "killall"
|
||||||
ka "killall"
|
ka "killall"
|
||||||
kc "killall chromium"
|
#kc "killall chromium"
|
||||||
|
kc "killall chrome"
|
||||||
kcm "killall compton"
|
kcm "killall compton"
|
||||||
kd "killall Discord && killall Discord"
|
kd "killall Discord && killall Discord"
|
||||||
ke "killall electron"
|
ke "killall electron"
|
||||||
@@ -1266,3 +1269,4 @@ vpt "nordvpn status"
|
|||||||
# ]]] vpn #
|
# ]]] vpn #
|
||||||
|
|
||||||
ft "dexscreener ethereum 0x983b92EA1F0A20844466f3E4BB988c1dE145293E"
|
ft "dexscreener ethereum 0x983b92EA1F0A20844466f3E4BB988c1dE145293E"
|
||||||
|
|
||||||
|
|||||||
@@ -277,6 +277,9 @@ jhi ~/school/job-hunt/interview-questions
|
|||||||
jhig ~/school/job-hunt/interview-questions/grafana
|
jhig ~/school/job-hunt/interview-questions/grafana
|
||||||
|
|
||||||
el ~/coding/eliza
|
el ~/coding/eliza
|
||||||
|
an ~/coding/ai-nft-proj/
|
||||||
|
anb ~/coding/ai-nft-proj/backend
|
||||||
|
anf ~/coding/ai-nft-proj/frontend
|
||||||
|
|
||||||
# ]]] sch #
|
# ]]] sch #
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ set -x HASTE_SERVER https://pste.gq
|
|||||||
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
|
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
|
||||||
set -x GOPATH ~/go
|
set -x GOPATH ~/go
|
||||||
# set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
|
# set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
|
||||||
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin /home/kevin/.linuxbrew/bin ~/.fnm/current/bin
|
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin ~/.linuxbrew/bin ~/.fnm/current/bin ~/.nimble/bin
|
||||||
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
|
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
|
||||||
|
|
||||||
# Java [[[ #
|
# Java [[[ #
|
||||||
@@ -194,12 +194,12 @@ abbr ! "sudo !!"
|
|||||||
# task [[[ #
|
# task [[[ #
|
||||||
|
|
||||||
abbr aan "task-anno ''"
|
abbr aan "task-anno ''"
|
||||||
abbr ae "task-edit"
|
abbr aed "task-edit"
|
||||||
abbr adl "task-delete"
|
abbr adl "task-delete"
|
||||||
abbr adn "task-done"
|
abbr adn "task-done"
|
||||||
abbr adu "task-due"
|
abbr adu "task-due"
|
||||||
abbr adr "task-due-rm"
|
abbr adr "task-due-rm"
|
||||||
abbr an "task-next"
|
abbr anx "task-next"
|
||||||
abbr anr "task-next-rm"
|
abbr anr "task-next-rm"
|
||||||
abbr ant "task-notes"
|
abbr ant "task-notes"
|
||||||
abbr apr "task-mod-pri"
|
abbr apr "task-mod-pri"
|
||||||
@@ -208,7 +208,7 @@ abbr aprm "task-mod-pri M"
|
|||||||
abbr aprn "task-mod-pri ''"
|
abbr aprn "task-mod-pri ''"
|
||||||
abbr aprh "task-mod-pri H"
|
abbr aprh "task-mod-pri H"
|
||||||
abbr apj "task-mod-proj"
|
abbr apj "task-mod-proj"
|
||||||
abbr asr "task-start"
|
abbr ar "task-start"
|
||||||
abbr at "task-mod-tag"
|
abbr at "task-mod-tag"
|
||||||
abbr atj "task-mod-tag jira"
|
abbr atj "task-mod-tag jira"
|
||||||
abbr aw "task-wait"
|
abbr aw "task-wait"
|
||||||
@@ -309,6 +309,15 @@ abbr xya "export-pkgs"
|
|||||||
|
|
||||||
# school [[[ #
|
# school [[[ #
|
||||||
|
|
||||||
|
abbr aw "aws ec2"
|
||||||
|
abbr awav "aws-attach-volume"
|
||||||
|
abbr awlv "aws ec2 describe-volumes --query \"sort_by(Volumes, &CreateTime)[*].{ID:VolumeId,Name:Tags[?Key=='Name']|[0].Value,Created:CreateTime}\" --output table"
|
||||||
|
abbr awdtv "aws ec2 detach-volume --volume-id"
|
||||||
|
abbr awdlv "aws ec2 delete-volume --volume-id"
|
||||||
|
abbr awli "aws ec2 describe-instances --query \"sort_by(Reservations[].Instances[], &LaunchTime)[*].[InstanceId, Tags[?Key=='Name'].Value | [0], LaunchTime, InstanceType, State.Name]\" --output table"
|
||||||
|
abbr awsai "aws ec2 start-instances --instance-ids"
|
||||||
|
abbr awsti "aws ec2 stop-instances --instance-ids"
|
||||||
|
|
||||||
# ]]] school #
|
# ]]] school #
|
||||||
|
|
||||||
# ]]] fxn abbr's #
|
# ]]] fxn abbr's #
|
||||||
@@ -318,3 +327,7 @@ abbr xya "export-pkgs"
|
|||||||
source /home/kevin/.config/fish/key_abbr.fish > /dev/null
|
source /home/kevin/.config/fish/key_abbr.fish > /dev/null
|
||||||
cat /home/kevin/.cache/wal/sequences
|
cat /home/kevin/.cache/wal/sequences
|
||||||
# ~/scripts/xmodmap-custom
|
# ~/scripts/xmodmap-custom
|
||||||
|
|
||||||
|
#ssh-add ~/.ssh/ai16z-test.pem > /dev/null
|
||||||
|
# keychain --agents ssh id_rsa
|
||||||
|
#set -Ux SSH_AUTH_SOCK (keychain --eval --agents ssh id_rsa | grep setenv | sed -E 's/setenv (\S+) (\S+);/\2/')
|
||||||
|
|||||||
3
dot_config/fish/functions/aws-attach-volume.fish
Normal file
3
dot_config/fish/functions/aws-attach-volume.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function aws-attach-volume
|
||||||
|
aws ec2 attach-volume --volume-id $argv[1] --instance-id $argv[2] --device /dev/sda1
|
||||||
|
end
|
||||||
@@ -477,7 +477,8 @@ set $ws11 "11 "
|
|||||||
# assign [class="Summoners War Exporter"] $ws11
|
# assign [class="Summoners War Exporter"] $ws11
|
||||||
workspace $ws11 output $secondary
|
workspace $ws11 output $secondary
|
||||||
# bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
|
# bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
|
||||||
bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM
|
#bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM
|
||||||
|
bindsym $mod+F11 workspace $ws11; exec $term -e btop
|
||||||
# bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
|
# bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
|
||||||
bindsym Control+Shift+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
|
bindsym Control+Shift+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
|
||||||
bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk
|
bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk
|
||||||
|
|||||||
151
dot_taskopenrc
151
dot_taskopenrc
@@ -1,72 +1,83 @@
|
|||||||
|
[General]
|
||||||
|
EDITOR = nvim # Use your preferred editor
|
||||||
|
path_ext = /usr/share/taskopen/scripts
|
||||||
|
taskbin = task
|
||||||
|
|
||||||
# BROWSER='xdg-open $FILE &>/dev/null'
|
[Actions]
|
||||||
BROWSER='firefox'
|
notes.regex = "Notes" # Match tasks with the "Notes" annotation
|
||||||
EDITOR='nvim'
|
notes.command = "$EDITOR $HOME/.task/notes/$UUID.md" # Custom notes directory
|
||||||
#FILE_CMD='xdg-open'
|
#notes.modes = any
|
||||||
TASKBIN='task'
|
notes.modes = normal
|
||||||
|
|
||||||
# If you sync tasks NOTES_FOLDER should be a location that syncs and is available to
|
# # BROWSER='xdg-open $FILE &>/dev/null'
|
||||||
# other computers, i.e. /users/dropbox/tasknotes
|
# BROWSER='firefox'
|
||||||
# NOTES_FOLDER to store notes in, must already exist!
|
# EDITOR='nvim'
|
||||||
NOTES_FOLDER="$HOME/.task/notes/"
|
# #FILE_CMD='xdg-open'
|
||||||
|
# TASKBIN='task'
|
||||||
# Preferred extension for tasknotes
|
#
|
||||||
NOTES_EXT=".md"
|
# # If you sync tasks NOTES_FOLDER should be a location that syncs and is available to
|
||||||
|
# # other computers, i.e. /users/dropbox/tasknotes
|
||||||
# Path to notes file. UUID will be replaced with the actual uuid of
|
# # NOTES_FOLDER to store notes in, must already exist!
|
||||||
# the task. If NOTES_CMD
|
# NOTES_FOLDER="$HOME/.task/notes/"
|
||||||
# Default is: ${NOTES_FOLDER}UUID${NOTES_EXT}
|
# data_location="$HOME/.task/notes/"
|
||||||
#NOTES_FILE="$HOME/tasknotes/UUID.txt"
|
#
|
||||||
|
# # Preferred extension for tasknotes
|
||||||
# Command that opens notes. UUID will be replaced with the actual uuid of
|
# NOTES_EXT=".md"
|
||||||
# the task.
|
#
|
||||||
# Default is: $EDITOR $NOTES_FILE
|
# # Path to notes file. UUID will be replaced with the actual uuid of
|
||||||
#NOTES_CMD="vim "$HOME/tasknotes/$UUID.txt""
|
# # the task. If NOTES_CMD
|
||||||
|
# # Default is: ${NOTES_FOLDER}UUID${NOTES_EXT}
|
||||||
# Specify the default sorting.
|
# #NOTES_FILE="$HOME/tasknotes/UUID.txt"
|
||||||
# Default is taskwarrior's default sorting, i.e. sorting by task IDs.
|
#
|
||||||
#DEFAULT_SORT="urgency-,label,annot"
|
# # Command that opens notes. UUID will be replaced with the actual uuid of
|
||||||
|
# # the task.
|
||||||
# Apply a default taskwarrior filter in order to exclude certain tasks.
|
# # Default is: $EDITOR $NOTES_FILE
|
||||||
# Default is: status.is:pending
|
# #NOTES_CMD="vim "$HOME/tasknotes/$UUID.txt""
|
||||||
#DEFAULT_FILTER=
|
#
|
||||||
|
# # Specify the default sorting.
|
||||||
# Default command for '-i'
|
# # Default is taskwarrior's default sorting, i.e. sorting by task IDs.
|
||||||
# Default is: ls -la
|
# #DEFAULT_SORT="urgency-,label,annot"
|
||||||
#DEFAULT-i="ls -la"
|
#
|
||||||
|
# # Apply a default taskwarrior filter in order to exclude certain tasks.
|
||||||
# Add some paths to the taskopen's PATH variable
|
# # Default is: status.is:pending
|
||||||
#PATH_EXT=/path/to/taskopen/scripts
|
# #DEFAULT_FILTER=
|
||||||
PATH_EXT=/usr/share/taskopen/scripts
|
#
|
||||||
|
# # Default command for '-i'
|
||||||
# Regular expression that referes to the NOTES_FILE.
|
# # Default is: ls -la
|
||||||
# Default is: Notes
|
# #DEFAULT-i="ls -la"
|
||||||
#NOTES_REGEX="Notes"
|
#
|
||||||
|
# # Add some paths to the taskopen's PATH variable
|
||||||
# Regular expression that identifies annotations openable by BROWSER.
|
# #PATH_EXT=/path/to/taskopen/scripts
|
||||||
# Default is: www|http
|
# PATH_EXT=/usr/share/taskopen/scripts
|
||||||
#BROWSER_REGEX="www|http"
|
#
|
||||||
|
# # Regular expression that referes to the NOTES_FILE.
|
||||||
# Regular expression that identifies file paths in annotations. Will be opened by xdg-open.
|
# # Default is: Notes
|
||||||
# Default is: \.|\/|~
|
# #NOTES_REGEX="Notes"
|
||||||
#FILE_REGEX="\.|\/|~"
|
#
|
||||||
|
# # Regular expression that identifies annotations openable by BROWSER.
|
||||||
# Regular expression that identifies a text annotation. Automatically triggers raw edit mode like '-r'.
|
# # Default is: www|http
|
||||||
#TEXT_REGEX=".*"
|
# #BROWSER_REGEX="www|http"
|
||||||
|
#
|
||||||
# Custom regular expression that specifies annotations passed to CUSTOM1_CMD, e.g:
|
# # Regular expression that identifies file paths in annotations. Will be opened by xdg-open.
|
||||||
#CUSTOM1_REGEX="Message-[Ii][Dd]:|message:"
|
# # Default is: \.|\/|~
|
||||||
#CUSTOM1_CMD="muttjumpwrapper"
|
# #FILE_REGEX="\.|\/|~"
|
||||||
|
#
|
||||||
# Custom regular expression that specifies annotations passed to CUSTOM2_CMD.
|
# # Regular expression that identifies a text annotation. Automatically triggers raw edit mode like '-r'.
|
||||||
#CUSTOM2_REGEX=""
|
# #TEXT_REGEX=".*"
|
||||||
#CUSTOM2_CMD=""
|
#
|
||||||
|
# # Custom regular expression that specifies annotations passed to CUSTOM1_CMD, e.g:
|
||||||
# Execute an arbitrary command if there is no annotation available. The corresponding taskwarrior IDs will
|
# #CUSTOM1_REGEX="Message-[Ii][Dd]:|message:"
|
||||||
# be passed as arguments, e.g. "addnote 21 42"
|
# #CUSTOM1_CMD="muttjumpwrapper"
|
||||||
#NO_ANNOTATION_HOOK=addnote
|
#
|
||||||
|
# # Custom regular expression that specifies annotations passed to CUSTOM2_CMD.
|
||||||
# Make additional taskwarrior attributes available as sort keys and environment variables.
|
# #CUSTOM2_REGEX=""
|
||||||
# E.g. TASK_ATTRIBUTES="project,tags" allows to sort by "task_project" or "task_tags" and to use
|
# #CUSTOM2_CMD=""
|
||||||
# "$TASK_PROJECT" or "$TASK_TAGS" within your (custom) commands.
|
#
|
||||||
#TASK_ATTRIBUTES=""
|
# # Execute an arbitrary command if there is no annotation available. The corresponding taskwarrior IDs will
|
||||||
|
# # be passed as arguments, e.g. "addnote 21 42"
|
||||||
|
# #NO_ANNOTATION_HOOK=addnote
|
||||||
|
#
|
||||||
|
# # Make additional taskwarrior attributes available as sort keys and environment variables.
|
||||||
|
# # E.g. TASK_ATTRIBUTES="project,tags" allows to sort by "task_project" or "task_tags" and to use
|
||||||
|
# # "$TASK_PROJECT" or "$TASK_TAGS" within your (custom) commands.
|
||||||
|
# #TASK_ATTRIBUTES=""
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ data.location=~/.task
|
|||||||
# Color theme (uncomment one to use){{{
|
# Color theme (uncomment one to use){{{
|
||||||
#include /usr/share/doc/task/rc/light-16.theme
|
#include /usr/share/doc/task/rc/light-16.theme
|
||||||
#include /usr/share/doc/task/rc/light-256.theme
|
#include /usr/share/doc/task/rc/light-256.theme
|
||||||
include /usr/share/doc/task/rc/dark-16.theme
|
# include /usr/share/doc/task/rc/dark-16.theme
|
||||||
# include /usr/share/doc/task/rc/dark-256.theme
|
# include /usr/share/doc/task/rc/dark-256.theme
|
||||||
#include /usr/share/doc/task/rc/dark-red-256.theme
|
#include /usr/share/doc/task/rc/dark-red-256.theme
|
||||||
#include /usr/share/doc/task/rc/dark-green-256.theme
|
#include /usr/share/doc/task/rc/dark-green-256.theme
|
||||||
@@ -82,9 +82,10 @@ context.mny=project:mny
|
|||||||
context.pey=project:pey
|
context.pey=project:pey
|
||||||
context.sch=project:sch
|
context.sch=project:sch
|
||||||
|
|
||||||
|
context=none
|
||||||
# context=home
|
# context=home
|
||||||
# context=out
|
# context=out
|
||||||
context=sch
|
#context=sch
|
||||||
# context=mny
|
# context=mny
|
||||||
# context=pey
|
# context=pey
|
||||||
# context=not-pey
|
# context=not-pey
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ filetype plugin indent on
|
|||||||
autocmd BufNewFile,BufRead .* set syntax=sh
|
autocmd BufNewFile,BufRead .* set syntax=sh
|
||||||
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
|
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
|
||||||
autocmd FileType *css,gitcommit,haskell,htmldjango,html,graphql,javascript,javascriptreact,json,lisp,markdown,
|
autocmd FileType *css,gitcommit,haskell,htmldjango,html,graphql,javascript,javascriptreact,json,lisp,markdown,
|
||||||
\racket,tex,text,yaml set tabstop=2 shiftwidth=2
|
\racket,tex,text,typescript,typescriptreact,yaml set tabstop=2 shiftwidth=2
|
||||||
" autocmd BufNewFile,BufRead *.md set filetype=markdown
|
" autocmd BufNewFile,BufRead *.md set filetype=markdown
|
||||||
" autocmd Filetype markdown set textwidth=0
|
" autocmd Filetype markdown set textwidth=0
|
||||||
" autocmd Filetype html set foldmarker=0
|
" autocmd Filetype html set foldmarker=0
|
||||||
@@ -345,6 +345,9 @@ Plug 'jidn/vim-dbml'
|
|||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
" Plug 'tpope/vim-commentary'
|
" Plug 'tpope/vim-commentary'
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
|
"Plug 'vimwiki/vimwiki'
|
||||||
|
"let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
"Plug 'tools-life/taskwiki'
|
||||||
" ]]] vim-plug "
|
" ]]] vim-plug "
|
||||||
|
|
||||||
" Mappings [[[ "
|
" Mappings [[[ "
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ elif (( $(echo "$price < 100" | bc -l) )); then
|
|||||||
echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}'
|
echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}'
|
||||||
elif (( $(echo "$price < 1000" | bc -l) )); then
|
elif (( $(echo "$price < 1000" | bc -l) )); then
|
||||||
echo "$price" | numfmt --grouping | cut -c -3
|
echo "$price" | numfmt --grouping | cut -c -3
|
||||||
elif (( $(echo "$price < 10000" | bc -l) )); then
|
#elif (( $(echo "$price < 10000" | bc -l) )); then
|
||||||
|
elif (( $(echo "$price < 100000" | bc -l) )); then
|
||||||
echo "$price" | cut -c -3
|
echo "$price" | cut -c -3
|
||||||
elif (( $(echo "$price > 100000" | bc -l) )); then
|
elif (( $(echo "$price > 100000" | bc -l) )); then
|
||||||
echo "$price" | numfmt --grouping | cut -c -3
|
echo "$price" | numfmt --grouping | cut -c -3
|
||||||
|
|||||||
Reference in New Issue
Block a user