Skip to content

Instantly share code, notes, and snippets.

View scout1256's full-sized avatar

scout1256

  • NYCU
  • NYCU
View GitHub Profile
@nathandarnell
nathandarnell / Proxmox-Backup-to-Google-Drive
Last active July 13, 2024 20:33
A script to backup Proxmox backups to Google Drive and delete any over a certain limit
#All backups go to here automatically:
#/var/lib/vz/dump
#install rclone if uninstalled or update available
#downloads page is http://rclone.org/downloads/
wget http://downloads.rclone.org/rclone-current-linux-amd64.zip
# version on webpage is http://downloads.rclone.org/rclone-v1.33-linux-amd64.zip
# from: http://blog.mattwynne.net/2008/04/26/fetch-and-parse-html-web-page-content-from-bash-wow/
# Download ZIP, keep zip in working folder, check future runs against HTML piped through w3c for newer versions
# from: http://tips.webdesign10.com/scrape-web-pages-gnu-linux-shell:
@fuyuanli
fuyuanli / cloudflare-pve-acme.sh
Last active July 23, 2024 02:01
acme.sh + Proxmox VE
# CloudFlare API
#
# Please install "acme.sh" before runnung this script.
# curl https://get.acme.sh/ | sh
#
export CF_Email="Your_CloudFlare_Account@example.com"
export CF_Key="Your_CloudFlare_API_Key"
/root/.acme.sh/acme.sh --issue \
-d $DOMAIN \
@marvin-marvin
marvin-marvin / change_swap_proxmox.txt
Last active March 20, 2024 15:35
extend swapfile proxmox
# Change Swapfile:
swapoff -v /dev/pve/swap
lvm lvresize /dev/pve/swap -L +48G
mkswap /dev/pve/swap
swapon -va
dd if=/dev/zero of=/dev2/swap bs=1M count=49152
mkswap /dev2/swap
swapon -v /dev2/swap