This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Safe Docker Swarm Reset Script | |
# This script safely disables Docker Swarm while preserving SSH connectivity | |
# and avoiding risky network operations | |
# Minimal error handling - continue on errors to prevent hanging | |
set +e | |
echo "======= Safe Docker Swarm Reset =======" | |
echo "This script will preserve SSH connectivity throughout the process" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WireGuard VPN Setup Script for Docker Swarm | |
# This script sets up a WireGuard VPN between multiple VPS servers | |
# Error handling | |
set -e | |
trap 'echo "Error on line $LINENO. Exiting."; exit 1' ERR | |
# Check if running as sudo/root | |
if [ "$(id -u)" -ne 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Helper function for yes/no prompts | |
confirm() { | |
while true; do | |
read -p "$1 [y/N] " yn | |
case $yn in | |
[Yy]* ) echo "yes"; return 0;; | |
[Nn]* | "" ) echo "no"; return 1;; | |
* ) echo "Please answer yes or no.";; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#--------------------------------------------------------------------# | |
# NOTE: | |
# | |
# I have added an interactive version of this vps setup script. | |
# | |
# https://gist.github.com/legout/56ce53a0275413b4c98d01482ca52943 | |
# | |
#--------------------------------------------------------------------# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for octave on macOS 10.13.6 | |
Build date: 2018-07-16 20:30:00 |