From a50baf801c2b33e683af7b2c71ae7960313b9157 Mon Sep 17 00:00:00 2001 From: fabian Date: Sat, 6 May 2023 04:11:17 +0200 Subject: [PATCH 1/8] Revert "Revert "old raspi version of nanorc cannot handle certain settings"" This reverts commit 844fe85d6d6b5a96b21e6bcf8f44de3cf936379f. --- home_external/.config/nano/nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home_external/.config/nano/nanorc b/home_external/.config/nano/nanorc index 7c13914..21e7054 100644 --- a/home_external/.config/nano/nanorc +++ b/home_external/.config/nano/nanorc @@ -89,7 +89,7 @@ set linenumbers set matchbrackets "(<[{)>]}" ## Suppress title bar and show file name and editor state at the bottom. -set minibar +# set minibar ## Enable mouse support, if available for your system. When enabled, ## mouse clicks can be used to place the cursor, set the mark (with a -- 2.45.2 From 1952ece138c9fe80ad0e8c4f98d045791a087848 Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 14 May 2023 12:18:13 +0200 Subject: [PATCH 2/8] - commented out options not working in ancient debian version --- home_external/.config/rofi/config.rasi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home_external/.config/rofi/config.rasi b/home_external/.config/rofi/config.rasi index 2d0b8eb..ae0955a 100644 --- a/home_external/.config/rofi/config.rasi +++ b/home_external/.config/rofi/config.rasi @@ -139,13 +139,13 @@ configuration { /* me-select-entry: "MousePrimary";*/ /* me-accept-entry: "MouseDPrimary";*/ /* me-accept-custom: "Control+MouseDPrimary";*/ - timeout { +/* timeout { action: "kb-cancel"; delay: 0; } filebrowser { directories-first: true; sorting-method: "name"; - } + }*/ } @theme "/usr/share/rofi/themes/Arc-Dark.rasi" -- 2.45.2 From e99b430ce8fa40a0d4f52982065232e4a9f56f6a Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 31 Mar 2024 23:54:05 +0200 Subject: [PATCH 3/8] new function to update debian based systems improved automatic updates via executeAndNotify to enable fire-and-forget --- home_external/.bash_aliases_branched | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/home_external/.bash_aliases_branched b/home_external/.bash_aliases_branched index c2539e2..47bfa4b 100644 --- a/home_external/.bash_aliases_branched +++ b/home_external/.bash_aliases_branched @@ -4,13 +4,18 @@ updatePackages() { noconfirm= if [[ $1 == "-y" ]]; then - noconfirm="--no-confirm"; + noconfirm="--assume-yes" fi - executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed"; + full= + if [[ $2 == "--full" ]]; then + full="full-" + fi + executeAndNotify "doUpdatePackages $noconfirm $full" "system updated" "system update failed"; } doUpdatePackages() { - pamac update $1; - pamac remove --orphans --cascade $1; + sudo apt update; + sudo apt ${2}upgrade $1; + sudo apt autoremove $1; } -- 2.45.2 From 08fbd0beb94f82b7927515777716134bcef6e75e Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 31 Mar 2024 23:54:05 +0200 Subject: [PATCH 4/8] new function to update debian based systems improved automatic updates via executeAndNotify to enable fire-and-forget --- home_external/.bash_aliases_branched | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/home_external/.bash_aliases_branched b/home_external/.bash_aliases_branched index c2539e2..47bfa4b 100644 --- a/home_external/.bash_aliases_branched +++ b/home_external/.bash_aliases_branched @@ -4,13 +4,18 @@ updatePackages() { noconfirm= if [[ $1 == "-y" ]]; then - noconfirm="--no-confirm"; + noconfirm="--assume-yes" fi - executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed"; + full= + if [[ $2 == "--full" ]]; then + full="full-" + fi + executeAndNotify "doUpdatePackages $noconfirm $full" "system updated" "system update failed"; } doUpdatePackages() { - pamac update $1; - pamac remove --orphans --cascade $1; + sudo apt update; + sudo apt ${2}upgrade $1; + sudo apt autoremove $1; } -- 2.45.2 From bb09061c3b02dcfec2a22c5cbed0653613df9e8c Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 2 Jun 2023 15:57:57 +0200 Subject: [PATCH 5/8] improved automatic updates via executeAndNotify to enable fire-and-forget --- home_external/.bash_aliases_extra | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 home_external/.bash_aliases_extra diff --git a/home_external/.bash_aliases_extra b/home_external/.bash_aliases_extra new file mode 100644 index 0000000..ad0a437 --- /dev/null +++ b/home_external/.bash_aliases_extra @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +updateSystem() { + noconfirm= + if [[ $1 == "-y" ]]; then + noconfirm="--assume-yes" + fi + full= + if [[ $2 == "--full" ]]; then + full="full-" + fi + executeAndNotify "doUpdateSystem $noconfirm $full" "system updated" "system update failed"; +} + + +doUpdateSystem() { + sudo apt update; + sudo apt ${2}upgrade $1; + sudo apt autoremove $1; +} -- 2.45.2 From 0d7c1902c18e2ff2367effe15792c7fa1d81a12b Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 1 Apr 2024 00:17:07 +0200 Subject: [PATCH 6/8] fkin just work now... please --- home_external/.bash_aliases_extra | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 home_external/.bash_aliases_extra diff --git a/home_external/.bash_aliases_extra b/home_external/.bash_aliases_extra deleted file mode 100644 index ad0a437..0000000 --- a/home_external/.bash_aliases_extra +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -updateSystem() { - noconfirm= - if [[ $1 == "-y" ]]; then - noconfirm="--assume-yes" - fi - full= - if [[ $2 == "--full" ]]; then - full="full-" - fi - executeAndNotify "doUpdateSystem $noconfirm $full" "system updated" "system update failed"; -} - - -doUpdateSystem() { - sudo apt update; - sudo apt ${2}upgrade $1; - sudo apt autoremove $1; -} -- 2.45.2 From ae2779f48e20a6e27ce824cce38a6b8625605712 Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 1 Sep 2024 14:46:44 +0200 Subject: [PATCH 7/8] fix npe-like-error --- scripts/backup_edi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup_edi.sh b/scripts/backup_edi.sh index adee0e9..42d8ee2 100755 --- a/scripts/backup_edi.sh +++ b/scripts/backup_edi.sh @@ -32,7 +32,7 @@ backupRootDirectory /etc/docker/daemon.json $BACKUP_DIR_ROOT/docker/ ### upload backup ### ##################### -if [[ "$1" == "--noupload" ]]; then +if [[ $# > 0 && "$1" == "--noupload" ]]; then exit 0; fi -- 2.45.2 From d3d0a4cc5d897773f08508cdb9d3c10d5b617df6 Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 1 Sep 2024 14:47:17 +0200 Subject: [PATCH 8/8] updated command to docker compose 2.0 --- scripts/dockerContainerAction.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dockerContainerAction.sh b/scripts/dockerContainerAction.sh index 74a4e1f..87e2da9 100644 --- a/scripts/dockerContainerAction.sh +++ b/scripts/dockerContainerAction.sh @@ -16,7 +16,7 @@ upDownContainers() { continue; fi cd $subdir; - docker-compose $@; + docker compose $@; done } -- 2.45.2