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 | |
# Import the WireGuard connection file | |
sudo nmcli connection import type wireguard file securedns.it.conf | |
# Connect through WireGuard connection using NetworkManager CLI | |
nmcli connection up securedns.it | |
# Disconnect from WireGuard connection using NetworkManager CLI | |
nmcli connection down securedns.it |
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 | |
NEW_PARTITION=$1 | |
LVM_PATH=$2 | |
VG_NAME=$3 | |
pvcreate $NEW_PARTITION && vgextend $VG_NAME $NEW_PARTITION && lvextend --resizefs -l +100%FREE $LVM_PATH |
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 | |
PLESK_BACKUP_PASSWORD="somepassword" | |
BACKUP_FILE=$1 #for example /root/backup_info_1712180545.xml.tar | |
plesk bin pleskrestore --restore $BACKUP_FILE -level server -ignore-sign -backup-password $PLESK_BACKUP_PASSWORD |
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
#PATH: /etc/bluetooth/main.conf DELETE_THIS_COMMENT | |
[General] | |
# Default adapter name | |
# Defaults to 'BlueZ X.YZ' | |
Name = 'DEVICE_NAME' | |
# Default device class. Only the major and minor device class bits are | |
# considered. Defaults to '0x000000'. | |
#Class = 0x000100 |
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
version: '3' | |
services: | |
homeassistant: | |
container_name: home-assistant | |
image: homeassistant/home-assistant:stable | |
volumes: | |
- /PATH_TO_YOUR_CONFIG:/config | |
environment: | |
- TZ=America/New_York | |
restart: always |