diff options
author | terminaldweller <thabogre@gmail.com> | 2021-12-29 16:55:20 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-12-29 16:55:20 +0000 |
commit | f2ef99d0ac3cde7469da9a0b35a66043d13acc4a (patch) | |
tree | 7349c560d39c0489aac59f8d3dfe05aa8a65c9e3 | |
parent | more updates. some chroot stuff (diff) | |
download | scripts-f2ef99d0ac3cde7469da9a0b35a66043d13acc4a.tar.gz scripts-f2ef99d0ac3cde7469da9a0b35a66043d13acc4a.zip |
updates
-rw-r--r-- | .gdbinit | 1 | ||||
-rw-r--r-- | .tmux.conf | 1 | ||||
-rw-r--r-- | .vimrc | 2 | ||||
-rw-r--r-- | .w3m/config | 2 | ||||
-rw-r--r-- | .zshrc | 22 | ||||
-rwxr-xr-x | bin/chrooted | 3 | ||||
-rwxr-xr-x | chroot/debian11.sh | 8 | ||||
-rwxr-xr-x | chroot/voidmusl.sh | 7 | ||||
-rw-r--r-- | irssi/solarized-powerline.theme | 4 |
9 files changed, 38 insertions, 12 deletions
@@ -21,6 +21,7 @@ end set listsize 13 set follow-fork-mode child set detach-on-fork on +set breakpoint pending on # set backtrace-past-main on # set backtrace-past-entry on set target-async on @@ -5,6 +5,7 @@ set -g @plugin 'soyuka/tmux-current-pane-hostname' set -g @plugin 'laktak/extrakto' set -g @plugin 'tmux-plugins/tmux-copycat' set -g @plugin 'schasse/tmux-jump' +set -g @plugin 'tmux-plugins/tmux-yank' set -g @continuum-restore 'on' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'tmux-plugins/tmux-continuum' @@ -255,7 +255,7 @@ let g:jellybeans_overrides = { \ 'Todo': { 'guifg': '000000', 'guibg': '00cc00', \ 'ctermfg': 'Black', 'ctermbg': 'Blue', \ 'attr': 'bold' }, -\ 'Comment': { 'guibg': '339966', 'guifg': '000000' }, +\ 'Comment': { 'guibg': '339966', 'guifg': '000000'}, \ 'background': { "guibg": "000000", "ctermbg":"none"}, \ 'StorageClass': {"guifg": '9966ff' }, \ 'PreCondit': {"guifg": '5f87ff' }, diff --git a/.w3m/config b/.w3m/config index 75528a1..f06c5eb 100644 --- a/.w3m/config +++ b/.w3m/config @@ -28,7 +28,7 @@ auto_image 1 max_load_image 4 ext_image_viewer 1 image_scale 100 -imgdisplay /usr/bin/img2sixel +imgdisplay /usr/lib/w3m/w3mimgdisplay image_map_list 0 fold_line 0 show_lnum 1 @@ -155,6 +155,8 @@ alias zssh="proxychains4 ssh" alias zscp="proxychains4 scp" alias socks5z="ssh -N -D 9998 -o ExitOnForwardFailure=yes -l pi 192.168.1.108" alias socks5ir="ssh -N -D 9997 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 terminaldweller.com" +alias socks5vpn1="ssh -N -D 9999 -o ExitOnForwardFailure=yes -l rooot 145.239.165.137" +alias socks5vpn2="ssh -N -D 9996 -o ExitOnForwardFailure=yes -l rooot -p 1022 192.99.102.52" alias cloud_one="ssh 130.185.121.80 -l ubuntu -p 1022" alias zharf_server="zssh 192.168.12.5 -l farzad" alias k9sskin="vim ~/scripts/.k9s/skin.yml" @@ -260,6 +262,10 @@ export PYGMENTIZE_STYLE="paraiso-dark" # alias trashon=”export TRASH_OFF=NO” # alias trashoff=”export TRASH_OFF=YES” +# TZ=Asia/Tehran +# export TZ +# export GPG_TTY=$(tty) + export BAT_THEME="Solarized (light)" export FZF_TMUX_OPTS="-p 70%,70%" @@ -290,9 +296,9 @@ export PATH=$PATH:/home/devi/.fzf/bin # export PATH=$PATH:/home/devi/.ghcup/bin export PATH=$PATH:/home/devi/k3s export PATH=$PATH:/home/devi/kompose -export PATH=$PATH:/home/devi/mongosh/bin +export PATH=$PATH:/home/devi/mongosh/mongosh-1.1.7-linux-x64/bin export PATH=$PATH:/home/devi/powershell -export PATH=$PATH:/home/devi/ytfzf +export PATH=$PATH:/home/devi/ytfzf.git/rewrite export PATH=$PATH:/home/devi/gotty export PATH=$PATH:/home/devi/.poetry/bin export PATH=$PATH:/home/devi/pulumi @@ -304,11 +310,14 @@ export PATH=$PATH:/home/devi/opam export PATH=$PATH:/home/devi/devi/ghorg export PATH=$PATH:/home/devi/kubectl export PATH=$PATH:/home/devi/solidity -export PATH=$PATH:/home/devi/devi/emsdk.git/main -export PATH=$PATH:/home/devi/devi/emsdk.git/main/node/14.15.5_64bit/bin -export PATH=$PATH:/home/devi/devi/emsdk.git/main/upstream/emscripten +# export PATH=$PATH:/home/devi/devi/emsdk.git/main +# export PATH=$PATH:/home/devi/devi/emsdk.git/main/node/14.15.5_64bit/bin +# 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 +export PATH=$PATH:/home/devi/devi/emsdk.git/3.1.0 +export PATH=$PATH:/home/devi/devi/emsdk.git/3.1.0/node/14.15.5_64bit/bin +export PATH=$PATH:/home/devi/devi/emsdk.git/3.1.0/upstream/emscripten ks() { kubectl "$@" -n kube-system @@ -592,3 +601,6 @@ ranger() { # eval "$(rbenv init -)" _evalcache rbenv init - [ -f "/home/devi/.ghcup/env" ] && source "/home/devi/.ghcup/env" # ghcup-env + +source /usr/share/fzf/completion.zsh +source /usr/share/fzf/key-bindings.zsh diff --git a/bin/chrooted b/bin/chrooted index 069bef6..6815dda 100755 --- a/bin/chrooted +++ b/bin/chrooted @@ -1,4 +1,5 @@ -#!/usr/bin/bash +#!/bin/sh + if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then echo "We are chrooted!" else diff --git a/chroot/debian11.sh b/chroot/debian11.sh new file mode 100755 index 0000000..158224e --- /dev/null +++ b/chroot/debian11.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +CHROOT_DIR=/home/devi/rootfs/debian11 +sudo mount -t proc proc $CHROOT_DIR/proc/ +sudo mount -t sysfs sys $CHROOT_DIR/sys/ +# sudo mount -o bind /tmp $CHROOT_DIR/tmp/ +# sudo mount -o bind /dev $CHROOT_DIR/dev/ +sudo chroot $CHROOT_DIR diff --git a/chroot/voidmusl.sh b/chroot/voidmusl.sh index 21152d7..3f74e05 100755 --- a/chroot/voidmusl.sh +++ b/chroot/voidmusl.sh @@ -2,7 +2,10 @@ CHROOT_DIR=/home/devi/rootfs/voidmusl sudo mount -t proc proc $CHROOT_DIR/proc/ -sudo mount -t sysfs sys $CHROOT_DIR/sys/ -sudo mount -o bind /tmp $CHROOT_DIR/tmp/ +sudo mount -t sysfs sys $CHROOT_DIR/sys/ +sudo mount -o bind /tmp $CHROOT_DIR/tmp/ sudo mount -o bind /dev $CHROOT_DIR/dev/ +rmdir $CHROOT_DIR/dev/pts +sudo mount -t devpts none $CHROOT_DIR/dev/pts -o ptmxmode=0666,newinstance +ln -fs /dev/pts/ptmx $CHROOT_DIR/dev/ptmx sudo chroot $CHROOT_DIR diff --git a/irssi/solarized-powerline.theme b/irssi/solarized-powerline.theme index 56895f0..fc98208 100644 --- a/irssi/solarized-powerline.theme +++ b/irssi/solarized-powerline.theme @@ -172,7 +172,7 @@ abstracts = { # public message in channel meant for me, $0 = nick mode, $1 = nick # %5 = magenta - pubmsgmenick = "%5%k%Z0087ff{msgnick $0$1-}%N%m %n"; + pubmsgmenick = "%5%k%Z0087ff{msgnick $0$1-}%N%m %n"; menick = "%Zeeeeee$*"; # public highlighted message in channel @@ -403,7 +403,7 @@ formats = { line_start_irssi = "%k%z5f5fd7IRSSI%N%Z5f5fd7 %N"; new_topic = "%k%z00d700TOPIC %8 {ichannelhilight $1} by {inick $0}%8 $2"; nick_changed = "%k%z00d700RENAME %Z00d700%0 {nick $0} %Zff8700 {nick $1} %N%8%n%k%N"; - part = "%k%z00d700PART %8 {ichannelhilight $2}%N %0%Z005f87 %N{inick $0}%0 %k%Zeeeeee {reason $3}"; + part = "%K%Z00d700%k%z00d700PART %8 {ichannelhilight $2}%N %0%Z005f87 %N{inick $0}%0 %k%Zeeeeee {reason $3}"; quit = "%0%Z005f00%k%z005f00QUIT %N {inick $0}%0 %Zeeeeee %N%n%k%N {reason $2}"; your_nick_changed = "%k%z00d700RENAME %Z00d700%0 {mynick $0} %Zff8700 {mynick $1} %N%8%n%k%N"; own_msg = "{ownmsgnick $nickalign$2 {ownnick $nickcolor$0$nicktrunc}}$1"; |