From fd800adfd73af825975c933b34498da2dae5d0e5 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Tue, 27 Jul 2021 13:21:33 -0700 Subject: [PATCH 1/3] fix install.sh --- config/.tmux.conf | 11 +++-------- install.sh | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/config/.tmux.conf b/config/.tmux.conf index 0fd8d94..2398b07 100644 --- a/config/.tmux.conf +++ b/config/.tmux.conf @@ -1,8 +1,8 @@ # # Ctrl-a is the prefix. # -set -g prefix C-a -bind C-a send-prefix +set -g prefix ALT-b +bind ALT-b send-prefix unbind C-b # Start windows from #1 (default #0) @@ -51,12 +51,7 @@ bind -r M-j resize-pane -D bind -r M-k resize-pane -U bind -r M-l resize-pane -R -#No mouse -#set -g mode-mouse off -#set -g mouse-select-pane off -#set -g mouse-resize-pane off -#set -g mouse-select-window off - +# Mouse on/off # bind m \ # set -g mode-mouse on \;\ # set -g mouse-resize=pane on \;\ diff --git a/install.sh b/install.sh index b4eac63..1b7ba82 100755 --- a/install.sh +++ b/install.sh @@ -6,8 +6,8 @@ else SCRIPTS=${HOME}/devel/scripts fi -find ${SCRIPTS}/config -name .\* -type f -exec ln -i \{\} . \; -find ${SCRIPTS}/config -name .\* -type d -exec ln -i -s \{\} . \; +find ${SCRIPTS}/config -name .\* -type f -maxdepth 1 -exec ln -i \{\} . \; +find ${SCRIPTS}/config -name .\* -type d -maxdepth 1 -exec ln -i -s \{\} . \; #mkdir -p .vim/autoload .vim/bundle curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ From 46685dd18ea114934933ddb7e80c74accbf69de0 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Tue, 10 Aug 2021 22:03:01 +0100 Subject: [PATCH 2/3] Fix find warnings. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1b7ba82..9d68aed 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bkriuuvnbnvvdictin/sh if [ ! -z "$1" ]; then SCRIPTS=$1 @@ -6,8 +6,8 @@ else SCRIPTS=${HOME}/devel/scripts fi -find ${SCRIPTS}/config -name .\* -type f -maxdepth 1 -exec ln -i \{\} . \; -find ${SCRIPTS}/config -name .\* -type d -maxdepth 1 -exec ln -i -s \{\} . \; +find ${SCRIPTS}/config -maxdepth 1 -name .\* -type f -exec ln -i \{\} . \; +find ${SCRIPTS}/config -maxdepth 1 -name .\* -type d x ln -i -s \{\} . \; #mkdir -p .vim/autoload .vim/bundle curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ From f3e4e0f3feb0573441fe23e5f42541dc24b82c9d Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Tue, 10 Aug 2021 22:04:33 +0100 Subject: [PATCH 3/3] ssh_lusntag.service and ssh_yerevak.service --- ssh_lusntag.service | 20 ++++++++++++++++++++ ssh_yerevak.service | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 ssh_lusntag.service create mode 100644 ssh_yerevak.service diff --git a/ssh_lusntag.service b/ssh_lusntag.service new file mode 100644 index 0000000..54d4eaf --- /dev/null +++ b/ssh_lusntag.service @@ -0,0 +1,20 @@ +[Unit] +#SourcePath=/etc/init.d/rpcbind +Description=SSH lusntag.vostan.org +#DefaultDependencies=no +Before=shutdown.target +After=network-online.target local-fs.target +Wants=network-online.target +Conflicts=shutdown.target + +[Service] +Type=simple +User=vahagn +Group=vahagn +Restart=always +RestartSec=5s +WorkingDirectory=/tmp +ExecStart=/usr/bin/ssh -N -R *:8022:127.0.0.1:22 -R *:58846:127.0.0.1:58846 -R *:8112:127.0.0.1:8112 -p 8080 -i /home/vahagn/.ssh/id_rsa vahagn@lusntag.vostan.org + +[Install] +WantedBy=multi-user.target diff --git a/ssh_yerevak.service b/ssh_yerevak.service new file mode 100644 index 0000000..1ab606d --- /dev/null +++ b/ssh_yerevak.service @@ -0,0 +1,20 @@ +[Unit] +#SourcePath=/etc/init.d/rpcbind +Description=SSH lusntag.vostan.org +#DefaultDependencies=no +Before=shutdown.target +After=network-online.target local-fs.target +Wants=network-online.target +Conflicts=shutdown.target + +[Service] +Type=simple +User=vahagn +Group=vahagn +Restart=always +RestartSec=5s +WorkingDirectory=/tmp +ExecStart=/usr/bin/ssh -N -R *:8022:127.0.0.1:22 -p 24 -i /home/vahagn/.ssh/id_rsa vahagn@yerevak.vostan.org + +[Install] +WantedBy=multi-user.target