Skip to content

Instantly share code, notes, and snippets.

View eugene-panin's full-sized avatar
🇷🇸

Eugene eugene-panin

🇷🇸
View GitHub Profile
@eugene-panin
eugene-panin / wireguard_init.sh
Created June 9, 2024 17:10
Bash script automates the installation and configuration of WireGuard on a Linux system.
#!/bin/bash
apt update
apt install -y wireguard
WG_DIR="/etc/wireguard"
PRIVATE_KEY_FILE="$WG_DIR/privatekey"
PUBLIC_KEY_FILE="$WG_DIR/publickey"
CONFIG_FILE="$WG_DIR/wg0.conf"
ADDRESS=${1:-"10.10.10.1/32"}
@eugene-panin
eugene-panin / update_kubeconfig.sh
Last active May 12, 2024 11:56
Add context to ~/.kube/config from external config
#!/bin/bash
# Check if argument is provided
if [ $# -eq 0 ]; then
echo "Error: Path to the new configuration file is not provided."
echo "Usage: $0 <path_to_new_configuration_file>"
exit 1
fi
# Path to the new configuration file

Keybase proof

I hereby claim:

To claim this, I am signing this object: