From: Will Budic Date: Thu, 15 May 2025 05:22:52 +0000 (+1000) Subject: Remote elite server waking and booting up script. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=HEAD;p=wb-shell-scripts.git Remote elite server waking and booting up script. --- diff --git a/check_wake_elite.sh b/check_wake_elite.sh new file mode 100755 index 0000000..c2c1003 --- /dev/null +++ b/check_wake_elite.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Wake it elite +/usr/bin/wakeonlan 50:65:f3:4f:1f:be + +if ping -c 1 elite &> /dev/null +then +nmap -n elite; +exit; +else +echo -e "Elite not available maybe still booting up? Waiting for a minute...\n"; +sleep 1m; +echo -e "Time is up, retrying to ping..."; +fi + +if ping -c 10 elite &> /dev/null +then +nmap -n elite +else + echo -e "Elite: " $(dig +short elite) " is not available!" +fi diff --git a/cron_backup_periodicals.sh b/cron_backup_periodicals.sh new file mode 100644 index 0000000..62716d4 --- /dev/null +++ b/cron_backup_periodicals.sh @@ -0,0 +1,21 @@ +#!/bin/bash +export XDG_RUNTIME_DIR=/run/user/$(id -u) +export DISPLAY=":0" +export XAUTHORITY="$HOME/.Xauthority" +export BACKUP_VERBOSE=0 +export HOME=/home/will +export USER=will + +# Backups periodicals. Usefull for live web databases and other files not in the main backup path. +# Periodicals are stored as compressed archives. + +echo -e $(date +"%d-%b-%Y %T") $(basename $0) "Started" + +rsync -chavzP --stats will@nuc:thttpd_dev/dbLifeLog/ "$HOME/backups/NUC_dbLifeLog" +rm -f "$HOME/backups/NUC_dbLifeLog/cgisess_*" +# Let's synch perl and its modules while we at it. +rsync -Pacz --stats /home/will/localperl will@nuc:backups + +echo -e $(date +"%d-%b-%Y %T") $(basename $0) "Ended\n" + +exit; diff --git a/linux-B_L_R_via_sshfs/backup.config b/linux-B_L_R_via_sshfs/backup.config index 46e6365..5e9c9a8 100644 --- a/linux-B_L_R_via_sshfs/backup.config +++ b/linux-B_L_R_via_sshfs/backup.config @@ -11,7 +11,8 @@ DPATH=/usr/local/bin:/usr/bin:/bin EXT_ENC="tar.xz.enc" EXT_LST="lst.xz" #To speed up backup, set compression ratio to XZ_OPT=-4e -XZ_OPT=-9e +#XZ_OPT=-9e +export XZ_DEFAULTS="-T 4 -9e" # You should set only following verbose output to 0 externally, for example for an cron job. [[ -z $BACKUP_VERBOSE ]] && BACKUP_VERBOSE=1 # Default target backup directory. Can set externally or change here. diff --git a/linux-B_L_R_via_sshfs/vs_code_extensions.lst b/linux-B_L_R_via_sshfs/vs_code_extensions.lst index b14f331..87a88db 100644 --- a/linux-B_L_R_via_sshfs/vs_code_extensions.lst +++ b/linux-B_L_R_via_sshfs/vs_code_extensions.lst @@ -1,85 +1,34 @@ -alefragnani.project-manager -angular.ng-template -anikghosh.ollama-copilot -awehook.vscode-blink-mind +amodio.tsl-problem-matcher bianxianyang.htmlplay -bibhasdn.git-easy -bierner.markdown-mermaid -bierner.markdown-preview-github-styles -bpruitt-goddard.mermaid-markdown-syntax-highlighting -bscan.perlnavigator -codezombiech.gitignore -conradludgate.rust-playground davidanson.vscode-markdownlint dbaeumer.vscode-eslint -donjayamanne.git-extension-pack donjayamanne.githistory -dustypomerleau.rust-syntax -dzhavat.bracket-pair-toggler eamodio.gitlens -ecmel.vscode-html-css esbenp.prettier-vscode -felipecaputo.git-project-manager -firefox-devtools.vscode-firefox-debug formulahendry.auto-rename-tag -fractalboy.pls -george-alisson.html-preview-vscode -github.github-vscode-theme -github.remotehub +formulahendry.code-runner github.vscode-pull-request-github -gruntfuggly.todo-tree -harryhopkinson.vs-code-runner -hediet.vscode-drawio -howardzuo.vscode-git-tags -huizhou.githd -irongeek.vscode-env -james-yu.latex-workshop +jannek-aalto.shell-function-outline jeff-hykin.better-perl-syntax -jorol.perl-completions -letmaik.git-tree-compare -mdickin.markdown-shortcuts -mhutchie.git-graph -mikestead.dotenv -ms-azuretools.vscode-docker -ms-edgedevtools.vscode-edge-devtools +jock.svg +johnpapa.winteriscoming +jsynowiec.vscode-insertdatestring ms-python.debugpy -ms-python.isort ms-python.python ms-python.vscode-pylance -ms-toolsai.jupyter -ms-toolsai.jupyter-keymap -ms-toolsai.jupyter-renderers -ms-toolsai.vscode-jupyter-cell-tags -ms-toolsai.vscode-jupyter-slideshow ms-vscode-remote.remote-containers -ms-vscode-remote.remote-ssh -ms-vscode-remote.remote-ssh-edit -ms-vscode.azure-repos ms-vscode.cpptools +ms-vscode.extension-test-runner ms-vscode.live-server -ms-vscode.makefile-tools ms-vscode.remote-explorer -ms-vscode.remote-repositories -ms-vscode.vscode-speech -nopeslide.vscode-drawio-plugin-mermaid +ms-vscode.remote-server richterger.perl -ritwickdey.liveserver -rust-lang.rust-analyzer -s2junn.git-essentials -serayuzgur.crates -shaharkazaz.git-merger +rogalmic.bash-debug +shakram02.bash-beautify sidthesloth.html5-boilerplate -smallcloud.codify -solnurkarim.html-to-css-autocompletion streetsidesoftware.code-spell-checker -swellaby.rust-pack -tamasfe.even-better-toml -thekalinga.bootstrap4-vscode -thinker.properties +streetsidesoftware.code-spell-checker-cspell-bundled-dictionaries +sumneko.lua tshino.kb-macro -unifiedjs.vscode-mdx -valentjn.vscode-ltex +utgwkk.perl-rename-symbol wbudic.perlcnf -wscats.cors-browser -xabikos.javascriptsnippets -ziyasal.vscode-open-in-github