From 04b2f868b16a05f2a8770d77f1c0f7af5a3b4528 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 6 Apr 2024 17:52:12 +0300 Subject: [PATCH] Fix gitignore --- .gitignore | 2 +- tui-scripts_1.10-1.deb | Bin 2124 -> 0 bytes tui-scripts_1.10-1/DEBIAN/control | 9 -------- tui-scripts_1.10-1/usr/local/bin/a | 18 --------------- tui-scripts_1.10-1/usr/local/bin/g | 35 ----------------------------- tui-scripts_1.10-1/usr/local/bin/k | 31 ------------------------- tui-scripts_1.10-1/usr/local/bin/r | 4 ---- tui-scripts_1.10-1/usr/local/bin/s | 15 ------------- 8 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 tui-scripts_1.10-1.deb delete mode 100644 tui-scripts_1.10-1/DEBIAN/control delete mode 100755 tui-scripts_1.10-1/usr/local/bin/a delete mode 100755 tui-scripts_1.10-1/usr/local/bin/g delete mode 100755 tui-scripts_1.10-1/usr/local/bin/k delete mode 100755 tui-scripts_1.10-1/usr/local/bin/r delete mode 100755 tui-scripts_1.10-1/usr/local/bin/s diff --git a/.gitignore b/.gitignore index b1450f7..c0a7c21 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -gui-scripts* +tui-scripts* diff --git a/tui-scripts_1.10-1.deb b/tui-scripts_1.10-1.deb deleted file mode 100644 index bf53caa10f61d2040018ee03990e40b2061e921f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2124 zcma)-X*d*$8pp>LCdV!`ma!8JgFz)^C#kGs7-k`3$z;NqDSLAn$2KR92#GA2B>OHi zO_q{F7!^fDmh2&Aa69+j({t{pd;ib-ywCG~_Kj50Va8A}SntRDSBL8985tUa!9VIhLIL$5dO$2bEP{X!g+!nUkZAJ% z;fEUi^zRvy;RpbL_Y=FpmbZJFJN|+a*Ac+Kb+P7L&$Pw?7aR$YKHMP}!*!+A8t~Cs9kDKx@(ERjAEsWkravMG-w~zmHw{MhE9um!VlNaT zRlM62GO0=v_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TnSz^U+9*iK4m?`(`k{(_(kpnFbn z(@qtr&?7o53PzFXra~28tSFGD7XlN8-UL`HCc!H%`%X#Rwz!p&Q%ysq?qxRTV$x2S zRl6$T;^yrOgI4-NKxOf}481iktZ;6&r~NGc4N)M!+-qDr_hXmo@$B)ox`r{h{Vg}Q zbFGACG%``Nex<1u$EiAw4VSC!7F#!uquo@zGMUK~cbA$fIL!IuB3{{tBR<$+jXGGn z=QhJbRR^(%ACXIzQ8jGCI1ZWL@}20n;QHsU5}t&AE<}@Xu=F$OeeP|WTHK6xn`E0+ zv4jx1Eg)fwn*N93(;PZYl$+>eXxVtqT&~kW4HSn6-~8>OV}(e@g6IS9K0d*Mm~SN` fl9B%k= 1.3), xdotool, x11-xkb-utils -Maintainer: Konstantin Shutkin -Description: GUI scripts - GUI scripts for popular cli tools, based on dialog and fzf diff --git a/tui-scripts_1.10-1/usr/local/bin/a b/tui-scripts_1.10-1/usr/local/bin/a deleted file mode 100755 index 387ab66..0000000 --- a/tui-scripts_1.10-1/usr/local/bin/a +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -set -e -trap 'clear' SIGINT -cat > /tmp/.dialogrc << EOL -# Item color -tag_color = (BLACK,WHITE,ON) -EOL -action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for apt" 10 40 0 "Install" 1 "Install from .deb file" 2 "Update" 3 "Upgrade" 4 "Remove" 5 "Autoremove" 6) - - -if [[ $action == "Install" || $action == "Remove" ]]; then - package=$(apt-cache search '' | sort | cut --delimiter ' ' --fields 1 | fzf --multi --cycle --reverse --preview 'apt-cache show {1}') - sudo apt ${action,,} $package -y -elif [[ $action == "Install from .deb file" ]]; then - find . -name "*.deb" | fzf | xargs -I _ sudo apt install -y _ -elif [[ $action == "Update" || $action == "Upgrade" || $action == "Autoremove" ]]; then - sudo apt ${action,,} -y -fi diff --git a/tui-scripts_1.10-1/usr/local/bin/g b/tui-scripts_1.10-1/usr/local/bin/g deleted file mode 100755 index 9824a5f..0000000 --- a/tui-scripts_1.10-1/usr/local/bin/g +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -set -e -trap 'clear' SIGINT -cat > /tmp/.dialogrc << EOL -# Item color -tag_color = (BLACK,WHITE,ON) -EOL -set +ex -action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for git" 10 40 0 'Add all && Commit && Push' 1 "Add all && Commit" 2 "Reset soft" 3 "Reset hard" 4 "Status" 5 "Clone submodules" 6) - -#echo $action -#exit - -if [[ $action == "Add all && Commit && Push" ]]; then - commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40) - git add . - git commit -"m $commit_message" - git push -elif [[ $action == "Add all && Commit" ]]; then - commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40) - git add . - git commit -"m $commit_message" -elif [[ $action == "Reset soft" ]]; then - if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna soft reset git?" 10 40; then - git reset - fi -elif [[ $action == "Reset hard" ]]; then - if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna hard reset git?" 10 40; then - git reset --hard - fi -elif [[ $action == "Status" ]]; then - git status -elif [[ $action == "Clone submodules" ]]; then - git submodule update --init --recursive -fi diff --git a/tui-scripts_1.10-1/usr/local/bin/k b/tui-scripts_1.10-1/usr/local/bin/k deleted file mode 100755 index cd20219..0000000 --- a/tui-scripts_1.10-1/usr/local/bin/k +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -set -e -trap 'clear' SIGINT -cat > /tmp/.dialogrc << EOL -# Item color -tag_color = (BLACK,WHITE,ON) -EOL -namespace=$(kubectl get ns --no-headers | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'kubectl get pods -o wide -n {1}') -resource=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose resource in $namespace" 10 40 0 "Pods" 1 "Services" 2 "Ingress" 3 "Secrets" 4) -set +ex - - -if [ "$resource" = "Pods" ]; then - pod=$(kubectl -n $namespace get pods --no-headers | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview "kubectl get pod -n $namespace {1} -o yaml") - if [ ! -z "$pod" ]; then - action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose action for $pod in $namespace" 10 40 0 "Logs" 1 "Describe pod" 2 "Exec -it" 3 "Delete pod" 4) - fi - if [ ! -z "$action" ]; then - xdotool type --delay 0 "kubectl -n $namespace ${action,,} $pod" && xdotool key --delay 0 Return - fi -elif [ "$resource" = "Services" ]; then - svc=$(kubectl -n $namespace get svc --no-headers | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview "kubectl get svc -n $namespace {1} -o yaml") - if [ ! -z "$svc" ]; then - action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose action for $pod in $namespace" 10 40 0 "Get endpoints" 1 "Edit service" 2) - fi - if [ ! -z "$action" ]; then - xdotool type --delay 0 "kubectl -n $namespace ${action,,} $svc" && xdotool key --delay 0 Return - fi -fi - - diff --git a/tui-scripts_1.10-1/usr/local/bin/r b/tui-scripts_1.10-1/usr/local/bin/r deleted file mode 100755 index d56d102..0000000 --- a/tui-scripts_1.10-1/usr/local/bin/r +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -trap 'clear' SIGINT -setxkbmap -cat ~/.aliases.txt | fzf | cut -d : -f 2- | sed s/\ // | (stty -F /dev/tty -echo; xargs -0 -I _ xdotool type --delay 0 _; stty -F /dev/tty echo) && xdotool key Return diff --git a/tui-scripts_1.10-1/usr/local/bin/s b/tui-scripts_1.10-1/usr/local/bin/s deleted file mode 100755 index c098b6c..0000000 --- a/tui-scripts_1.10-1/usr/local/bin/s +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -e -trap 'clear' SIGINT -cat > /tmp/.dialogrc << EOL -# Item color -tag_color = (BLACK,WHITE,ON) -EOL -service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'SYSTEMD_COLORS=1 systemctl status --no-pager {1}') -set +ex -action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for $service" 10 40 0 "Start" 1 "Stop" 2 "Disable" 3 "Enable" 4) - - -if [ ! -z $action ]; then - sudo systemctl ${action,,} $service -fi