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 | |
if [ -z "$1" ]; then | |
echo "please supply at least one server to connect to" >&2 | |
exit 1 | |
fi | |
target=multi-ssh-$$ | |
if [ -z "$TMUX" ]; 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 | |
# Usage: ./wg-create-user.sh my-user | |
# Creats wiregard key, pub, psk | |
# Read vars | |
read -p "Client name: " -e -i $1 CLIENT | |
# Test vars, files | |
if [[ "$CLIENT" = "" ]]; then | |
echo "Sorry, you need a Client-Name" | |
exit 2 |
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
* |
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 | |
# Creates a Ubuntu Cloud-Init Ready VM Template in Proxmox | |
# | |
# Update the image name and URL for Ubuntu 22.04 LTS | |
export IMAGENAME="jammy-server-cloudimg-amd64.img" | |
export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/" | |
export STORAGE="local-zfs-cache" | |
export VMNAME="ubuntu-2204-cloudinit-template" | |
export VMID=902204 |
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 | |
# Creats a Ubuntu 20.10 Cloud-Init Ready VM Template in Proxmox | |
# | |
# Ubuntu 20.04: https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2 | |
# Ubuntu 20.10: https://gist.github.com/chris2k20/181ef4e4308e678657459d40ea94af90 | |
export IMAGENAME="groovy-server-cloudimg-amd64.img" | |
export IMAGEURL="https://cloud-images.ubuntu.com/groovy/current/" |
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
# run the following command in your terminal to: | |
# - run a mysql_upgrade command in every container | |
# - kill the container to restart the mariadb | |
for x in $(docker ps | grep -i mariadb:latest | awk '{print $1;}'); do echo container $x now updating...; docker exec $x bin/sh -c 'mysql_upgrade --user=root --password=$(printenv MYSQL_ROOT_PASSWORD) ; kill 1'; done |