From c0188607e73341cf5099784f3c5d0cac80cf3587 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 20 Apr 2022 17:01:48 +0200 Subject: [PATCH] rm some scripts from bin a new repo will be created at git.dotya.ml/wanderer/scripts --- bin/alltheconfigs.sh | 28 ---------------------------- bin/gethugo | 30 ------------------------------ bin/getnebulaconfigs | 23 ----------------------- 3 files changed, 81 deletions(-) delete mode 100755 bin/alltheconfigs.sh delete mode 100755 bin/gethugo delete mode 100755 bin/getnebulaconfigs diff --git a/bin/alltheconfigs.sh b/bin/alltheconfigs.sh deleted file mode 100755 index 6b71e30..0000000 --- a/bin/alltheconfigs.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# this little script backs up all the config files that matter - -dotfiles=~/utils/dotfiles -MEGA="MEGA/Private" - -params="auP" -if [ "$1" == "-d" ]; then - params="aunP" # rsync -n for dry run -fi - -rsync -$params /etc/X11/Xresources $dotfiles/etc/X11 - -rsync -$params ~/alltheconfigs.sh $dotfiles - -rsync -$params ~/.vimrc $dotfiles/vimrc -#rsync -$params ~/.gvimrc $dotfiles/gvimrc really using just vimrc -rsync -$params ~/.zshrc $dotfiles/zsh/zshrc - -#rsync -$params ~/$MEGA/backups/authenticator.sh $dotfiles/backups -rsync -$params ~/$MEGA/backups/createarchive.sh $dotfiles/backups - -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/fedora-setup.sh $dotfiles/setup-env -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/deploy-dotfiles.sh $dotfiles/setup-env -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/EASetup.sh $dotfiles/setup-env - -rsync -$params ~/.oh-my-zsh/themes/myowntheme* $dotfiles/zsh/oh-my-zsh/themes diff --git a/bin/gethugo b/bin/gethugo deleted file mode 100755 index 575c322..0000000 --- a/bin/gethugo +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -PATH=~/.local/bin:$PATH - -if [ -z $1 ]; then - echo "[x] HUGO_VERSION is not set, pass it as \$1" - exit 9001 -else - HUGO_VERSION=$1 -fi - -if [ $(hugo version | grep -q ${HUGO_VERSION}; echo $?) -eq 0 ]; then - echo "[*] which hugo: $(which hugo)" - echo "[*] already on $HUGO_VERSION, exiting..." - exit 0 -fi - -nutmp=$(mktemp -d);cd "$nutmp";unset nutmp - -WORKDIR=$(pwd) -HOMEBIN="/home/$USER/.local/bin" -mkdir -pv $HOMEBIN - -echo "[*] downloading hugo version \"$HUGO_VERSION\"" -curl -sL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | bsdtar xfv - -mv -vf hugo ${HOMEBIN} - -cd .. -rm -rfv $WORKDIR -echo "[*] hugo updated to version $HUGO_VERSION" diff --git a/bin/getnebulaconfigs b/bin/getnebulaconfigs deleted file mode 100755 index c69b5f3..0000000 --- a/bin/getnebulaconfigs +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# simple config backup script for nebula -remote="root@dotya.ml" -myrsync="rsync -auvP" -dest=~/utils/nebula - -cd $dest - -$myrsync $remote:/etc/gitea/app.ini . & -$myrsync $remote:/etc/nginx/nginx.conf . & -$myrsync $remote:/etc/redis/redis.conf . & -$myrsync $remote:/etc/smtpd/{smtpd.conf,mailname,aliases,vdoms,vusers,creds} ./smtpd & -$myrsync $remote:/etc/ssh/sshd_config . & -$myrsync $remote:/etc/fstab . & -$myrsync $remote:/etc/crypttab . & -$myrsync $remote:/etc/lvm/lvm.conf . & - -$myrsync $remote:/root/.zshrc ./root/zshrc -$myrsync $remote:/root/.ssh/ ./root/ssh - -$myrsync $remote:/home/vis/.ssh/ ./vis/ssh -$myrsync $remote:/home/vis/.config/ --exclude="*Bittorrent-data*" ./vis/config