diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..db0dae3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +end_of_line = lf diff --git a/.gitignore b/.gitignore index 7e6a017..2afcd82 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ gitconfig.local zsh.d/zshenv vim/.*hist vim/bundle/* -vscode/**/tags +zsh.d/zfunc/_* diff --git a/tmux.d/bin/ut/base b/tmux.d/bin/ut/base deleted file mode 100644 index 19d87a9..0000000 --- a/tmux.d/bin/ut/base +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -TMUX_ROOT=$(cd $PWD/../..; pwd) diff --git a/tmux.d/bin/ut/develop b/tmux.d/bin/ut/develop deleted file mode 100755 index 5bae954..0000000 --- a/tmux.d/bin/ut/develop +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -CWD=$(cd $(dirname $0); pwd) -echo ${CWD} - -for item in qmk vscode webapp0 webapp1 -do - echo ${CWD}/${item} - ${CWD}/${item} - sleep 0.5 -done diff --git a/tmux.d/bin/ut/front-v2 b/tmux.d/bin/ut/front-v2 deleted file mode 100755 index f4da11b..0000000 --- a/tmux.d/bin/ut/front-v2 +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; ${HOME}/work/gh/ut/webapp-frontend-v2" C-m -} - -main "$@" diff --git a/tmux.d/bin/ut/qmk b/tmux.d/bin/ut/qmk deleted file mode 100755 index 79b4305..0000000 --- a/tmux.d/bin/ut/qmk +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; ${HOME}/work/gh/shkumagai/qmk_firmware" C-m -} - -main "$@" diff --git a/tmux.d/bin/ut/style b/tmux.d/bin/ut/style deleted file mode 100755 index f46ea79..0000000 --- a/tmux.d/bin/ut/style +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; ${HOME}/work/gh/ut/style" C-m -} - -main "$@" diff --git a/tmux.d/bin/ut/vscode b/tmux.d/bin/ut/vscode deleted file mode 100755 index a0fd45c..0000000 --- a/tmux.d/bin/ut/vscode +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; workon vscode" C-m -} - -main "$@" diff --git a/tmux.d/bin/ut/webapp0 b/tmux.d/bin/ut/webapp0 deleted file mode 100755 index 24b7fca..0000000 --- a/tmux.d/bin/ut/webapp0 +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; workon userdive_webapp" C-m -} - -main "$@" diff --git a/tmux.d/bin/ut/webapp1 b/tmux.d/bin/ut/webapp1 deleted file mode 100755 index 3ec4e8e..0000000 --- a/tmux.d/bin/ut/webapp1 +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -source ${PWD}/base -source ${TMUX_ROOT}/bin/utils - -WINDOW_NAME=$(basename $0) -# echo ${WINDOW_NAME} - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} -c ${HOME} - tmux splitw -v -t ${WINDOW_NAME} - - tmux send -t ${WINDOW_NAME}.0 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; workon userdive_webapp" C-m - tmux send -t ${WINDOW_NAME}.1 "${TMUX_ROOT}/bin/auto_agent.sh ~/.ssh/id_rsa; workon userdive_webapp" C-m -} - -main "$@" diff --git a/tmux.d/bin/xlis/base b/tmux.d/bin/xlis/base deleted file mode 100644 index 8a52233..0000000 --- a/tmux.d/bin/xlis/base +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -PWD=$(cd $(dirname $0); pwd) -TMUX_ROOT=$(cd $PWD/../..; pwd) diff --git a/tmux.d/bin/xlis/dynad b/tmux.d/bin/xlis/dynad deleted file mode 100755 index 16de27a..0000000 --- a/tmux.d/bin/xlis/dynad +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -source ./base - -bash ${TMUX_ROOT}/bin/dynad-kvs-user -bash ${TMUX_ROOT}/bin/dynad-kvs-item -bash ${TMUX_ROOT}/bin/dynad-datafeed -bash ${TMUX_ROOT}/bin/dynad-logmanage diff --git a/tmux.d/bin/xlis/dynad-datafeed b/tmux.d/bin/xlis/dynad-datafeed deleted file mode 100755 index 837946d..0000000 --- a/tmux.d/bin/xlis/dynad-datafeed +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dynad-feeder-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dynad-feeder-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dynad-feeder-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dynad-fetcher-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dynad-fetcher-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dynad-fetcher-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/dynad-kvs-item b/tmux.d/bin/xlis/dynad-kvs-item deleted file mode 100755 index dee14cc..0000000 --- a/tmux.d/bin/xlis/dynad-kvs-item +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-02 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-02 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-02 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-03 'top'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-03 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-03 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/dynad-kvs-user b/tmux.d/bin/xlis/dynad-kvs-user deleted file mode 100755 index 6b3b3a6..0000000 --- a/tmux.d/bin/xlis/dynad-kvs-user +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-02 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-02 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-02 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-03 'top'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-03 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh -z dynad-user-kvs-03 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/dynad-logmanage b/tmux.d/bin/xlis/dynad-logmanage deleted file mode 100755 index 1ee691e..0000000 --- a/tmux.d/bin/xlis/dynad-logmanage +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dynad-logcompressor-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dynad-logcompressor-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dynad-logcompressor-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dynad-archiver-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dynad-archiver-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dynad-archiver-01 'dstat -tamsl'" C-m - - # tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'top'" C-m - # tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'tail -F /var/log/messages'" C-m - # tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dynad-db-01 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/kvs-all b/tmux.d/bin/xlis/kvs-all deleted file mode 100755 index 9acac90..0000000 --- a/tmux.d/bin/xlis/kvs-all +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - cols=$(get-cols-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x ${cols} - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x ${cols} - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x ${cols} - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x ${cols} - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x ${cols} - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x ${cols} - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-01 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-02 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-03 'pwd'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dynad-user-kvs-01 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dynad-user-kvs-02 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dynad-user-kvs-03 'pwd'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-01 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-02 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dynad-item-kvs-03 'pwd'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/log-all b/tmux.d/bin/xlis/log-all deleted file mode 100755 index a966763..0000000 --- a/tmux.d/bin/xlis/log-all +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - cols=$(get-cols-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x ${cols} - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -x ${cols} - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-01 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-03 'pwd'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-04 'pwd'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/monitor_dwh.sh b/tmux.d/bin/xlis/monitor_dwh.sh deleted file mode 100755 index 1f4de91..0000000 --- a/tmux.d/bin/xlis/monitor_dwh.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -bash xdmp-engine-10x "dstat -tamsl" -bash tgt_wrtr "tail -F /var/log/supervisor/target_result_writer_*/*.log" - -bash xdmp-engine-20x "dstat -tamsl" -bash seg_wrkr "tail -F /var/log/supervisor/segment_evaluator_worker_*/*.log" - -bash xdmp-engine-456 "dstat -tamsl" -bash seg_wrkr_0 "tail -F /var/log/supervisor/segment_evaluator_worker_*/*.log" - -bash pixeling-log diff --git a/tmux.d/bin/xlis/monitor_xsync.sh b/tmux.d/bin/xlis/monitor_xsync.sh deleted file mode 100755 index f57078c..0000000 --- a/tmux.d/bin/xlis/monitor_xsync.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -bash xsync-ap-east -bash xsync-ap-west -bash xsync-lb-cloudn -bash xsync-lb-dc diff --git a/tmux.d/bin/xlis/pixeling-log b/tmux.d/bin/xlis/pixeling-log deleted file mode 100755 index 7e308a2..0000000 --- a/tmux.d/bin/xlis/pixeling-log +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-03 'tail -F /var/log/supervisor/scale_out_pixeling_server/*.log'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-03 'tail -F /var/log/supervisor/sonet_media_pixeling_server/*.log'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-03 'tail -F /var/log/supervisor/cyber_agent/*.log'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-03 'tail -F /var/log/supervisor/freebit/*.log'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/srtsrv-apm b/tmux.d/bin/xlis/srtsrv-apm deleted file mode 100755 index 71f6c3e..0000000 --- a/tmux.d/bin/xlis/srtsrv-apm +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - rows=$(get-row-per-host 8) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -t ${WINDOW_NAME}.2 -y ${rows} - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -y ${rows} - tmux selectp -t 4; tmux splitw -v -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.4 -y ${rows} - tmux selectp -t 5; tmux splitw -v -t ${WINDOW_NAME}.5; tmux resizep -t ${WINDOW_NAME}.5 -y ${rows} - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -y ${rows} - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-06 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-07 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-08 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-09 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-10 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-11 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-12 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh srtsrv-apm-14 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xdmp-engine b/tmux.d/bin/xlis/xdmp-engine deleted file mode 100755 index 248156d..0000000 --- a/tmux.d/bin/xlis/xdmp-engine +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -source ./base -echo ${CWD} - -${CWD}/xdmp-engine-10x "dstat -tamsl"; sleep 0.5 -${CWD}/tgt_wrtr "tail -F /var/log/supervisor/target_result_writer*/*log"; sleep 0.5 -${CWD}/xdmp-engine-20x "dstat -tamsl"; sleep 0.5 -${CWD}/seg_wrkr "tail -F /var/log/supervisor/segment_evaluator_worker*/*log"; sleep 0.5 diff --git a/tmux.d/bin/xlis/xdmp-engine-10x b/tmux.d/bin/xlis/xdmp-engine-10x deleted file mode 100755 index ed513ad..0000000 --- a/tmux.d/bin/xlis/xdmp-engine-10x +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - # rows=$(get-row-per-host 5) - rows=10 - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -y ${rows} -t ${WINDOW_NAME}.2 - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.3 - - tmux selectp -t 5; tmux splitw -v -t ${WINDOW_NAME}.5; tmux resizep -y ${rows} -t ${WINDOW_NAME}.5 - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -y ${rows} -t ${WINDOW_NAME}.6 - tmux selectp -t 7; tmux splitw -v -t ${WINDOW_NAME}.7; tmux resizep -y ${rows} -t ${WINDOW_NAME}.7 - tmux selectp -t 8; tmux splitw -v -t ${WINDOW_NAME}.8; tmux resizep -y ${rows} -t ${WINDOW_NAME}.8 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-101 '$@'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-102 '$@'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-103 '$@'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-104 '$@'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-105 '$@'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-106 '$@'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-107 '$@'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-108 '$@'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-109 '$@'" C-m - tmux send -t ${WINDOW_NAME}.9 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-110 '$@'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xdmp-engine-20x b/tmux.d/bin/xlis/xdmp-engine-20x deleted file mode 100755 index dd856e0..0000000 --- a/tmux.d/bin/xlis/xdmp-engine-20x +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - # rows=$(get-row-per-host 5) - rows=10 - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -y ${rows} -t ${WINDOW_NAME}.2 - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.3 - - tmux selectp -t 5; tmux splitw -v -t ${WINDOW_NAME}.5; tmux resizep -y ${rows} -t ${WINDOW_NAME}.5 - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -y ${rows} -t ${WINDOW_NAME}.6 - tmux selectp -t 7; tmux splitw -v -t ${WINDOW_NAME}.7; tmux resizep -y ${rows} -t ${WINDOW_NAME}.7 - tmux selectp -t 8; tmux splitw -v -t ${WINDOW_NAME}.8; tmux resizep -y ${rows} -t ${WINDOW_NAME}.8 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-202 '$@'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-207 '$@'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-208 '$@'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-209 '$@'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-210 '$@'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-211 '$@'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-212 '$@'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-213 '$@'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-214 '$@'" C-m - tmux send -t ${WINDOW_NAME}.9 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-215 '$@'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xdmp-engine-456 b/tmux.d/bin/xlis/xdmp-engine-456 deleted file mode 100755 index ecdf2d7..0000000 --- a/tmux.d/bin/xlis/xdmp-engine-456 +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; sleep 0.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; sleep 0.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-04 '$@'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-05 '$@'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh dwh-master-01/dwh-engine-06 '$@'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync b/tmux.d/bin/xlis/xsync deleted file mode 100755 index fd78712..0000000 --- a/tmux.d/bin/xlis/xsync +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -source ./base - -bash ${TMUX_ROOT}/bin/xsync-ap-east -bash ${TMUX_ROOT}/bin/xsync-ap-west -bash ${TMUX_ROOT}/bin/xsync-lb-cloudn -bash ${TMUX_ROOT}/bin/xsync-lb-dc -bash ${TMUX_ROOT}/bin/xsync-log -bash ${TMUX_ROOT}/bin/xsync-kvs diff --git a/tmux.d/bin/xlis/xsync-ap-east b/tmux.d/bin/xlis/xsync-ap-east deleted file mode 100755 index 6113963..0000000 --- a/tmux.d/bin/xlis/xsync-ap-east +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - rows=$(get-row-per-host 6) - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -y ${rows} -t ${WINDOW_NAME}.2 - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.3 - tmux selectp -t 4; tmux splitw -v -t ${WINDOW_NAME}.4; tmux resizep -y ${rows} -t ${WINDOW_NAME}.4 - - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -y ${rows} -t ${WINDOW_NAME}.6 - tmux selectp -t 7; tmux splitw -v -t ${WINDOW_NAME}.7; tmux resizep -y ${rows} -t ${WINDOW_NAME}.7 - tmux selectp -t 8; tmux splitw -v -t ${WINDOW_NAME}.8; tmux resizep -y ${rows} -t ${WINDOW_NAME}.8 - tmux selectp -t 9; tmux splitw -v -t ${WINDOW_NAME}.9; tmux resizep -y ${rows} -t ${WINDOW_NAME}.9 - tmux selectp -t 10; tmux splitw -v -t ${WINDOW_NAME}.10; tmux resizep -y ${rows} -t ${WINDOW_NAME}.10 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-01 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-02 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-03 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-04 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-05 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-06 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-07 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-08 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-09 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.9 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-10 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.10 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-11 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.11 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-12 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync-ap-west b/tmux.d/bin/xlis/xsync-ap-west deleted file mode 100755 index b127a35..0000000 --- a/tmux.d/bin/xlis/xsync-ap-west +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - rows=$(get-row-per-host 6) - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -y ${rows} -t ${WINDOW_NAME}.2 - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.3 - tmux selectp -t 4; tmux splitw -v -t ${WINDOW_NAME}.4; tmux resizep -y ${rows} -t ${WINDOW_NAME}.4 - - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -y ${rows} -t ${WINDOW_NAME}.6 - tmux selectp -t 7; tmux splitw -v -t ${WINDOW_NAME}.7; tmux resizep -y ${rows} -t ${WINDOW_NAME}.7 - tmux selectp -t 8; tmux splitw -v -t ${WINDOW_NAME}.8; tmux resizep -y ${rows} -t ${WINDOW_NAME}.8 - tmux selectp -t 9; tmux splitw -v -t ${WINDOW_NAME}.9; tmux resizep -y ${rows} -t ${WINDOW_NAME}.9 - tmux selectp -t 10; tmux splitw -v -t ${WINDOW_NAME}.10; tmux resizep -y ${rows} -t ${WINDOW_NAME}.10 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-01w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-02w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-03w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-04w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-05w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-06w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-07w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-08w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-09w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.9 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-10w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.10 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-11w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.11 "$TMUX_ROOT/bin/auto_ssh.sh xsync-ap-12w 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync-kvs b/tmux.d/bin/xlis/xsync-kvs deleted file mode 100755 index 41b8e72..0000000 --- a/tmux.d/bin/xlis/xsync-kvs +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-02 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-02 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-02 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-03 'top'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-03 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh xsync-kvs-03 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync-lb-cloudn b/tmux.d/bin/xlis/xsync-lb-cloudn deleted file mode 100755 index c71d4de..0000000 --- a/tmux.d/bin/xlis/xsync-lb-cloudn +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - rows=$(get-row-per-host 6) - - tmux neww -n ${WINDOW_NAME} - tmux splitw -h -t ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -y ${rows} -t ${WINDOW_NAME}.0 - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -y ${rows} -t ${WINDOW_NAME}.1 - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -y ${rows} -t ${WINDOW_NAME}.2 - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -y ${rows} -t ${WINDOW_NAME}.3 - tmux selectp -t 4; tmux splitw -v -t ${WINDOW_NAME}.4; tmux resizep -y ${rows} -t ${WINDOW_NAME}.4 - - tmux selectp -t 6; tmux splitw -v -t ${WINDOW_NAME}.6; tmux resizep -y ${rows} -t ${WINDOW_NAME}.6 - tmux selectp -t 7; tmux splitw -v -t ${WINDOW_NAME}.7; tmux resizep -y ${rows} -t ${WINDOW_NAME}.7 - tmux selectp -t 8; tmux splitw -v -t ${WINDOW_NAME}.8; tmux resizep -y ${rows} -t ${WINDOW_NAME}.8 - tmux selectp -t 9; tmux splitw -v -t ${WINDOW_NAME}.9; tmux resizep -y ${rows} -t ${WINDOW_NAME}.9 - tmux selectp -t 10; tmux splitw -v -t ${WINDOW_NAME}.10; tmux resizep -y ${rows} -t ${WINDOW_NAME}.10 - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-01a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-02a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-03a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-04a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-05a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.10 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-06a 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-01w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-02w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-03w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-04w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.9 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-05w 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.11 "$TMUX_ROOT/bin/auto_ssh.sh xsync-lb-06w 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync-lb-dc b/tmux.d/bin/xlis/xsync-lb-dc deleted file mode 100755 index 44d8297..0000000 --- a/tmux.d/bin/xlis/xsync-lb-dc +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main -{ - get-passwds - #rows=$(get-row-per-host 7) - rows=7 - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - tmux selectp -t 2; tmux splitw -v -t ${WINDOW_NAME}.2; tmux resizep -t ${WINDOW_NAME}.2 -y ${rows} - tmux selectp -t 3; tmux splitw -v -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -y ${rows} - tmux selectp -t 4; tmux splitw -v -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.4 -y ${rows} - tmux selectp -t 5; tmux splitw -v -t ${WINDOW_NAME}.5; tmux resizep -t ${WINDOW_NAME}.5 -y ${rows} - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.50 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.51 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.52 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.53 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.54 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.55 'dstat -tamsl'" C-m - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh pointer/203.138.206.56 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/tmux.d/bin/xlis/xsync-log b/tmux.d/bin/xlis/xsync-log deleted file mode 100755 index 4b90c6c..0000000 --- a/tmux.d/bin/xlis/xsync-log +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -WINDOW_NAME=$(basename $0) - -source ./base -source ${TMUX_ROOT}/bin/utils - -function main () -{ - get-passwds - rows=$(get-row-per-host 3) - - tmux neww -n ${WINDOW_NAME} - - tmux selectp -t 0; tmux splitw -v -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -y ${rows} - tmux selectp -t 1; tmux splitw -v -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.1 -y ${rows} - - tmux selectp -t 0; tmux splitw -h -t ${WINDOW_NAME}.0; tmux resizep -t ${WINDOW_NAME}.0 -x 84 - tmux selectp -t 1; tmux splitw -h -t ${WINDOW_NAME}.1; tmux resizep -t ${WINDOW_NAME}.2 -x 124 - - tmux selectp -t 3; tmux splitw -h -t ${WINDOW_NAME}.3; tmux resizep -t ${WINDOW_NAME}.3 -x 84 - tmux selectp -t 4; tmux splitw -h -t ${WINDOW_NAME}.4; tmux resizep -t ${WINDOW_NAME}.5 -x 124 - - tmux selectp -t 6; tmux splitw -h -t ${WINDOW_NAME}.6; tmux resizep -t ${WINDOW_NAME}.6 -x 84 - tmux selectp -t 7; tmux splitw -h -t ${WINDOW_NAME}.7; tmux resizep -t ${WINDOW_NAME}.8 -x 124 - - tmux display-panes - - tmux send -t ${WINDOW_NAME}.0 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-01 'top'" C-m - tmux send -t ${WINDOW_NAME}.1 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-01 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.2 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-01 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.3 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-03 'top'" C-m - tmux send -t ${WINDOW_NAME}.4 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-03 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.5 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-03 'dstat -tamsl'" C-m - - tmux send -t ${WINDOW_NAME}.6 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-04 'top'" C-m - tmux send -t ${WINDOW_NAME}.7 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-04 'tail -F /var/log/messages'" C-m - tmux send -t ${WINDOW_NAME}.8 "$TMUX_ROOT/bin/auto_ssh.sh xsync-log-04 'dstat -tamsl'" C-m -} - -# run -main "$@" diff --git a/vscode/requirements.txt b/vscode/requirements.txt deleted file mode 100644 index 96df008..0000000 --- a/vscode/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -entrypoints==0.3 -flake8==3.7.6 -mccabe==0.6.1 -pycodestyle==2.5.0 -pyflakes==2.1.0 -yapf==0.26.0 diff --git a/vscode/uncovertruth/style/settings.json b/vscode/uncovertruth/style/settings.json deleted file mode 100644 index c5fdf6d..0000000 --- a/vscode/uncovertruth/style/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "flow.pathToFlow": "node_modules/.bin/flow", - "flow.useNPMPackagedFlow": true, - "javascript.validate.enable": false -} \ No newline at end of file diff --git a/vscode/uncovertruth/webapp/extensions.json b/vscode/uncovertruth/webapp/extensions.json deleted file mode 100644 index 275b8ed..0000000 --- a/vscode/uncovertruth/webapp/extensions.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "recommendations": [ - "bibhasdn.django-html", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode", - "humao.rest-client", - "ms-vscode.vscode-typescript-tslint-plugin", - "ms-python.python", - "Zignd.html-css-class-completion", - "ricard.PostCSS" - ] -} diff --git a/vscode/uncovertruth/webapp/settings.json b/vscode/uncovertruth/webapp/settings.json deleted file mode 100644 index e0dd798..0000000 --- a/vscode/uncovertruth/webapp/settings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "javascript.format.insertSpaceBeforeFunctionParenthesis": true, - "javascript.validate.enable": true, - - "git.ignoreLimitWarning": true, - "python.linting.flake8Args": [ - "--config=${workspaceRoot}/setup.cfg" - ], - "python.pythonPath": "/Users/shkumagai/.virtualenvs/userdive_webapp/bin/python" -} diff --git a/zsh.d/zshenv-darwin b/zsh.d/zshenv-darwin.sh similarity index 100% rename from zsh.d/zshenv-darwin rename to zsh.d/zshenv-darwin.sh diff --git a/zsh.d/zshenv-linux b/zsh.d/zshenv-linux.sh similarity index 100% rename from zsh.d/zshenv-linux rename to zsh.d/zshenv-linux.sh diff --git a/zshenv b/zshenv index 749e467..3fd05d3 100644 --- a/zshenv +++ b/zshenv @@ -5,8 +5,8 @@ setopt no_global_rcs # load global settings case ${OSTYPE} in - darwin*) ENVFILE=~/.zsh.d/zshenv-darwin ;; - linux*) ENVFILE=~/.zsh.d/zshenv-linux ;; + darwin*) ENVFILE=~/.zsh.d/zshenv-darwin.sh ;; + linux*) ENVFILE=~/.zsh.d/zshenv-linux.sh ;; esac source $ENVFILE