Skip to content

Instantly share code, notes, and snippets.

View andp97's full-sized avatar
👨‍💻
Developing

Andrea Pavone andp97

👨‍💻
Developing
View GitHub Profile
@andp97
andp97 / extend_lvm.sh
Created April 10, 2021 14:25
Extend LVM partition
#!/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
@andp97
andp97 / restore_plesk.sh
Created April 10, 2021 14:12
Restore Plesk Backup on different server
#!/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
@andp97
andp97 / main.conf
Last active September 8, 2020 18:46
Linux Notebook Bluetooth config file for fix Headpones Hi-Fi pairing issues
#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
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