From 29ed94da16ea674fa49f7ec232c05f6b11392206 Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 19 Dec 2022 02:00:48 -0500 Subject: [PATCH] maintenance --- config/.config/mc/ini | 4 ++-- scripts/{ => archive}/agent.sh | 0 scripts/{ => archive}/emojifix.zsh | 0 scripts/{ => archive}/escaps.sh | 0 scripts/{ => archive}/fixNXDomain.zsh | 0 scripts/{ => archive}/xfce_term_themes.sh | 0 scripts/kernel-stat.sh | 1 - scripts/preztoUpstream.zsh | 7 +++++-- scripts/repo2ssh.sh | 2 +- scripts/servertools.sh | 1 - scripts/swappiness.sh | 6 +++--- 11 files changed, 11 insertions(+), 10 deletions(-) rename scripts/{ => archive}/agent.sh (100%) rename scripts/{ => archive}/emojifix.zsh (100%) rename scripts/{ => archive}/escaps.sh (100%) rename scripts/{ => archive}/fixNXDomain.zsh (100%) rename scripts/{ => archive}/xfce_term_themes.sh (100%) delete mode 100755 scripts/kernel-stat.sh delete mode 100755 scripts/servertools.sh diff --git a/config/.config/mc/ini b/config/.config/mc/ini index 14c37a9..15fee98 100644 --- a/config/.config/mc/ini +++ b/config/.config/mc/ini @@ -83,11 +83,11 @@ editor_backup_extension=~ editor_filesize_threshold=64M editor_stop_format_chars=-+*\\,.;:&> mcview_eof= -skin=dracula256 +skin=modarin256 [Layout] output_lines=0 -left_panel_size=52 +left_panel_size=92 top_panel_size=0 message_visible=true keybar_visible=true diff --git a/scripts/agent.sh b/scripts/archive/agent.sh similarity index 100% rename from scripts/agent.sh rename to scripts/archive/agent.sh diff --git a/scripts/emojifix.zsh b/scripts/archive/emojifix.zsh similarity index 100% rename from scripts/emojifix.zsh rename to scripts/archive/emojifix.zsh diff --git a/scripts/escaps.sh b/scripts/archive/escaps.sh similarity index 100% rename from scripts/escaps.sh rename to scripts/archive/escaps.sh diff --git a/scripts/fixNXDomain.zsh b/scripts/archive/fixNXDomain.zsh similarity index 100% rename from scripts/fixNXDomain.zsh rename to scripts/archive/fixNXDomain.zsh diff --git a/scripts/xfce_term_themes.sh b/scripts/archive/xfce_term_themes.sh similarity index 100% rename from scripts/xfce_term_themes.sh rename to scripts/archive/xfce_term_themes.sh diff --git a/scripts/kernel-stat.sh b/scripts/kernel-stat.sh deleted file mode 100755 index b34e1c1..0000000 --- a/scripts/kernel-stat.sh +++ /dev/null @@ -1 +0,0 @@ -sudo canonical-livepatch status --verbose \ No newline at end of file diff --git a/scripts/preztoUpstream.zsh b/scripts/preztoUpstream.zsh index 44b98ec..dd582bb 100755 --- a/scripts/preztoUpstream.zsh +++ b/scripts/preztoUpstream.zsh @@ -1,2 +1,5 @@ -git remote add upstream https://github.com/sorin-ionescu/prezto.git -git remote -v +#!/bin/bash +if [[ "$PWD" = "$HOME/.zprezto" ]]; then + git remote add upstream https://github.com/sorin-ionescu/prezto.git + git remote -v +fi diff --git a/scripts/repo2ssh.sh b/scripts/repo2ssh.sh index 1c0e05a..272b696 100755 --- a/scripts/repo2ssh.sh +++ b/scripts/repo2ssh.sh @@ -1,5 +1,5 @@ #this command changes the git repo from HTTPS to SSH so you can use the key instead of typing in your password all the time. -USER=steveokard +USER=sc-idevops if [ -n "$1" ] then git remote set-url origin git@github.com:$USER/$1.git diff --git a/scripts/servertools.sh b/scripts/servertools.sh deleted file mode 100755 index ee87a6e..0000000 --- a/scripts/servertools.sh +++ /dev/null @@ -1 +0,0 @@ -sudo apt install sysstat vnstat iotop iftop bwm-ng htop munin diff --git a/scripts/swappiness.sh b/scripts/swappiness.sh index 3187e09..e53b8b1 100755 --- a/scripts/swappiness.sh +++ b/scripts/swappiness.sh @@ -1,7 +1,7 @@ #!/bin/sh if [ $(id -u) -ne 0 ] - then echo "Please run as root" - exit 1 + then echo "Please run as root" + exit 1 fi if [ -z "$1" ] @@ -9,6 +9,6 @@ then echo "Please provide a number to set swappiness value!" && exit 2 else sudo echo "vm.swappiness="$1 >> /etc/sysctl.conf - sudo sysctl -p + sudo sysctl -p fi