diff options
author | terminaldweller <thabogre@gmail.com> | 2021-11-10 11:51:38 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-11-10 11:51:38 +0000 |
commit | 216beb6c4dc046501566305e15fb731bd9a7f052 (patch) | |
tree | 3f1397a93deda04401e7192328ac3a2834eee466 | |
parent | more cleanup (diff) | |
download | scripts-216beb6c4dc046501566305e15fb731bd9a7f052.tar.gz scripts-216beb6c4dc046501566305e15fb731bd9a7f052.zip |
updates
Diffstat (limited to '')
-rw-r--r-- | .config/ranger/rc.conf | 2 | ||||
-rw-r--r-- | .dir_colors | 2 | ||||
-rw-r--r-- | .gdbinit | 5 | ||||
-rw-r--r-- | .inputrc | 1 | ||||
-rw-r--r-- | .vimrc | 15 | ||||
-rw-r--r-- | .zshrc | 22 | ||||
-rwxr-xr-x | bin/scotch | 1 | ||||
-rw-r--r-- | devi.zsh-theme | 12 | ||||
-rw-r--r-- | irssi/config | 4 | ||||
-rw-r--r-- | postit | 2 | ||||
-rw-r--r-- | vagrant/pfsense/Vagrantfile | 2 | ||||
-rw-r--r-- | vagrant/pfsense/conf/grub | 32 |
12 files changed, 88 insertions, 12 deletions
diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index 2daef2f..9d32017 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -128,7 +128,7 @@ set show_hidden_bookmarks true # Which colorscheme to use? These colorschemes are available by default: # default, jungle, snow, solarized -set colorscheme default +set colorscheme ls_colors # Preview files on the rightmost column? # And collapse (shrink) the last column if there is nothing to preview? diff --git a/.dir_colors b/.dir_colors index 1021789..40318c6 100644 --- a/.dir_colors +++ b/.dir_colors @@ -42,7 +42,7 @@ TERM xterm* #NORMAL 00 # no color code at all #FILE 00 # regular file: use no color at all RESET 0 # reset to "normal" color -DIR 01;34 # directory +DIR 01;38;5;23 # directory LINK 01;36 # symbolic link. (If you set this to 'target' instead of a # numerical value, the color is as for the file pointed to.) MULTIHARDLINK 00 # regular file with more than one link diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..5da7864 --- /dev/null +++ b/.gdbinit @@ -0,0 +1,5 @@ +source ~/gef/gef.py +# source /home/devi/.local/lib/python3.8/site-packages/voltron/entry.py +set listsize 20 +set follow-fork-mode child +set detach-on-fork on diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..b2cc9d6 --- /dev/null +++ b/.inputrc @@ -0,0 +1 @@ +set editing-mode vi @@ -496,6 +496,15 @@ augroup CFamLangRun autocmd! autocmd FileType c,cpp nmap <leader>r :make run<CR> augroup end +"FIXME +augroup JavaRun + autocmd! + autocmd FileType java nmap <leader>r :!gradle run<CR> +augroup end +augroup VimRun + autocmd! + autocmd FileType vim nmap <leader>r :so %<CR> +augroup end nnoremap <leader>cd :cd %:p:h<cr> "terminal vim wont do weird things when you paste things in set pastetoggle=<F11> @@ -1404,8 +1413,8 @@ augroup ALEMARKDOWN augroup END augroup ALEC autocmd! - autocmd FileType c let b:ale_linters = {'c': ['clang-tidy']} - autocmd FileType c let b:ale_fixers = {'c': ['clang-format']} + " autocmd FileType c let b:ale_linters = {'c': ['clang-tidy']} + " autocmd FileType c let b:ale_fixers = {'c': ['clang-format']} augroup END augroup ALECPP autocmd! @@ -1558,7 +1567,9 @@ let g:vista_executive_for = { \ } let g:vista_stay_on_open = 0 " let g:vista_no_mappings = 1 +autocmd FileType vista,vista_kind nnoremap <buffer> <silent> :<c-u>call vista#finder#fzf#Run()<CR> +" recutils let g:recutils_no_maps = 1 "this should be here at the end so nothing else could override it @@ -21,12 +21,14 @@ eval `dircolors ~/.dir_colors` # _evalcache dircolors ~/.dir_colors alias vv="vim" -alias ls="ls --color=auto" -alias la="ls -A" -# alias ll="exa -abghHliSmxF --color-scale --git -@" -alias ll="\ls -lZspihbFA --color=never --full-time --author | colcol | column -t" -# alias lss="exa -Sls=size" -alias lss="ls -sASh" +alias ls="exa" +# alias ls="ls --color=auto" +alias la="exa -a" +# alias la="ls -A" +alias ll="exa -abghHliSmxF --color-scale --git -@" +# alias ll="\ls -lZspihbFA --color=never --full-time --author | colcol | column -t" +alias lss="exa -Sls=size" +# alias lss="ls -sASh" alias ee="nautilus ." alias updaterc="cp ~/scripts/.zshrc ~/.zshrc" alias fixvimrc='cp ~/scripts/.vimrc ~/.vimrc' @@ -164,6 +166,10 @@ alias gottyrc="vim ~/scripts/.gotty" alias fixgottyrc="cp ~/scripts/.gotty ~/.gotty" alias dircolorsrc="vim ~/scripts/.dir_colors" alias fixdircolorsrc="cp ~/scripts/.dir_colors ~/.dir_colors" +alias inputrc="vim ~/scripts/.inputrc" +alias fixinputrc="cp ~/scripts/.inputrc ~/.inputrc" +alias gdbinit="vim ~/scripts/.gdbinit" +alias fixgdbinit="cp ~/scripts/.gdbinit ~/.gdbinit" #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold" @@ -298,6 +304,10 @@ export PATH=$PATH:/home/devi/devi/emsdk.git/main/upstream/emscripten export PATH=$PATH:/home/devi/google-java-format export PATH=$PATH:/home/devi/gradle/gradle-7.2/bin +ks() { + kubectl "$@" -n kube-system +} + export EDITOR=vim export BROWSER=w3m @@ -56,6 +56,7 @@ def main(): exitvalue = line[line.find(")") + 1 :] print(Color.one + syscall, end=" ") print(Color.two, end=" ") + sysargs = list(filter(None, sysargs)) for arg in sysargs: if arg.find("|") > 0: print(Color.five, arg, end=" ") diff --git a/devi.zsh-theme b/devi.zsh-theme index f64505e..38f167f 100644 --- a/devi.zsh-theme +++ b/devi.zsh-theme @@ -59,6 +59,7 @@ if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then yablue="%F{32}" yagreen="%F{34}" babyblue="%F{39}" + somegreen="%F{22}" else turquoise="$fg[cyan]" orange="$fg[yellow]" @@ -262,8 +263,17 @@ rebuildquery() { fi } +zstyle ':zsh-kubectl-prompt:' separator ':' +getkubernetesinfo() { + local SUB_PROMPT="%{$somegreen%}<$ZSH_KUBECTL_USER:$ZSH_KUBECTL_PROMPT>%{$reset_color%}" + if [[ "$ZSH_KUBECTL_USER" =~ "admin" ]];then + SUB_PROMPT="%{$someblue%}<$ZSH_KUBECTL_PROMPT>%{$reset_color%}" + fi + echo $SUB_PROMPT +} -PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} %{$someblue%}<$ZSH_KUBECTL_PROMPT>%{$reset_color%}%{$batred%}$(dir_writeable)%{$reset_color%}' +# PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} %{$someblue%}<$ZSH_KUBECTL_USER:$ZSH_KUBECTL_PROMPT>%{$reset_color%}%{$batred%}$(dir_writeable)%{$reset_color%}' +PS1=$'%{$new2%}$(sudo_query)%{$reset_color%}%{$swampgreen%}%n%{$reset_color%} on %{$purblue%}%M%{$reset_color%} in %{$yagreen%}$(pwd_shortened)%{$reset_color%} at %{$muckgreen%}$(time_function)%{$reset_color%}$vcs_info_msg_0_%{$limblue%}%{$gnew%}$(gitadditions)%{$gnew2%}$(gitdeletions)%{$reset_color%}%{$deeppink%}$(virtualenv_info)%{$reset_color%}%{$teal%}$(node_version)%{$reset_color%}%{$gover%}$(goversion)%{$reset_color%}%{$rust%}$(rustversion)%{$reset_color%}%{$babyblue%}$(ruby_version)%{$reset_color%}%{$sneakyc%}$(sneaky)%{$reset_color%}%{$new%}$(rebuildquery)%{$reset_color%} $(getkubernetesinfo)%{$batred%}$(dir_writeable)%{$reset_color%}' PS2=$'' PS3=$'\n%{$limblue%}--➜%{$reset_color%}' get_prompt_len() { diff --git a/irssi/config b/irssi/config index b2b7a81..f50dd5e 100644 --- a/irssi/config +++ b/irssi/config @@ -46,6 +46,8 @@ channels = ( { name = "#openssl"; chatnet = "libera"; autojoin = "yes"; }, { name = "#qemu"; chatnet = "OFTC"; autojoin = "yes"; }, { name = "#virt"; chatnet = "OFTC"; autojoin = "yes"; }, + { name = "#openssh"; chatnet = "libera"; autojoin = "yes"; }, + { name = "#gdb"; chatnet = "libera"; autojoin = "yes"; }, { name = "#kvm"; chatnet = "libera"; autojoin = "yes"; } ); @@ -415,5 +417,7 @@ ignores = ( { level = "JOINS PARTS QUITS NICKS"; channels = ( "#virt" ); }, { level = "JOINS PARTS QUITS NICKS"; channels = ( "#debian" ); }, { level = "JOINS PARTS QUITS NICKS"; channels = ( "#debian-next" ); }, + { level = "JOINS PARTS QUITS NICKS"; channels = ( "#openssh" ); }, + { level = "JOINS PARTS QUITS NICKS"; channels = ( "#gdb" ); }, { level = "JOINS PARTS QUITS NICKS"; channels = ( "#qemu" ); } ); @@ -25,3 +25,5 @@ docker run -p 6667:6667 ezkrg/bitlbee-libpurple openssl s_client -connect chat.terminaldweller.com:5222 -starttls xmpp vagrant package --base deb10-luks make MENUCONFIG_COLOR=blackbg menuconfig +sudo /home/devi/devi/openssh/openssh-8.8p1/sshd -D -f /home/devi/devi/openssh/openssh-8.8p1/sshd_config -d -p 2222 -4 +set schedule-multiple 1 diff --git a/vagrant/pfsense/Vagrantfile b/vagrant/pfsense/Vagrantfile index b7a187e..26f58d1 100644 --- a/vagrant/pfsense/Vagrantfile +++ b/vagrant/pfsense/Vagrantfile @@ -34,7 +34,7 @@ Vagrant.configure('2') do |config| config.vm.box_version = '3.4.2' config.vm.box_check_update = false config.vm.synced_folder './source', DEMO_MOUNT_POINT, type: 'nfs' - config.vm.hostname = 'dpdk-farzad' + config.vm.hostname = 'pfsense' config.vm.boot_timeout = 30 config.vm.graceful_halt_timeout = 30 diff --git a/vagrant/pfsense/conf/grub b/vagrant/pfsense/conf/grub new file mode 100644 index 0000000..90316e4 --- /dev/null +++ b/vagrant/pfsense/conf/grub @@ -0,0 +1,32 @@ +# If you change this file, run 'update-grub' afterwards to update +# /boot/grub/grub.cfg. +# For full documentation of the options in this file, see: +# info -f grub -n 'Simple configuration' + +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` +GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX="ipv6.disable_ipv6=1 net.ifnames=0 biosdevname=0 net.ifnames=0 biosdevname=0 iommu=pt intel_iommu=on hugepagesz=1G hugepages=2 hpet_mmap=1" + +# Uncomment to enable BadRAM filtering, modify to suit your needs +# This works with Linux (no patch required) and with any kernel that obtains +# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Uncomment to disable graphical terminal (grub-pc only) +#GRUB_TERMINAL=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +#GRUB_GFXMODE=640x480 + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" |