This is the service I use. I think it is much better than something like dropbox.
- $0.02 per GB/m (at least 500GB)
- git-annex discount: $0.015 per GB/m (at least 100GB, annual payment)
| #!/bin/bash | |
| # This script installs VARNISH Cache along side Apache on cPanel servers. | |
| #This script installs VARNISH, changes the Apache port to 82, writes | |
| # some config files, starts VARNISH, and terminates. | |
| ### Made by Shubham Mathur (itseasy21) | |
| #-Colors :D | |
| RED='\033[01;31m' |
| #Check for cPanel | |
| if [[ -d "/scripts" ]];then | |
| echo "cpanel detected" | |
| echo "Update cPanel? [y|n]" | |
| read CPAN | |
| if [ `echo $CPAN | egrep '(y|yes)'` ]; then | |
| /scripts/upcp --force | |
| fi | |
| else | |
| echo "No cPanel detected!" |
| #!/bin/sh | |
| # Log rotate script created by Denver Prophit Jr. | |
| # https://www.google.com/+DenverprophitJr | |
| # Version 0.2-beta | |
| # Are we already runnig? Twice runs is bad thing | |
| if [ -f /tmp/domlogs.flag ]; then echo "Already running!"; exit 2; fi | |
| # Flag is indicating, that we running |
| #!/bin/bash | |
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
| CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| HOSTNAME=$(hostname -f) | |
| PASSV_PORT="50000:50100" | |
| SSH_PORT=2022 | |
| PASSV_MIN=$(echo $PASSV_PORT | cut -d':' -f1) | |
| PASSV_MAX=$(echo $PASSV_PORT | cut -d':' -f2) | |
| ISVPS=$(((dmidecode -t system 2>/dev/null | grep "Manufacturer" | grep -i 'VMware\|KVM\|Bochs\|Virtual\|HVM' > /dev/null) || [ -f /proc/vz/veinfo ]) && echo "SI" || echo "NO") | |
| <?php | |
| /* | |
| Make sure to enter $anticaptcha_key before upload to server. | |
| Upload "auto_plesk_trial.php" file to "/home/centos/auto_plesk_trial.php" | |
| Then create Schedule Task in Root account of Plesk. | |
| Task Type: Run a PHP script | |
| Script path: /home/centos/auto_plesk_trial.php |
| A00G00-KZGW08-7J9Z67-S4A380-NFEF54 |
| #!/bin/bash | |
| # Set edition type for activation as host / pro / admin | |
| edition=pro | |
| # | |
| # *************** do not change below this line *************** | |
| # | |
| key=$(/usr/bin/wget url/${edition} -q -O -) | |
| key_id=$(/usr/sbin/plesk bin keyinfo --list | grep plesk_key_id | grep -Eo '[[:alpha:]]{4}[[:digit:]]{12}') | |
| lim_date=$(/usr/sbin/plesk bin keyinfo --list | grep lim_date | grep -Eo '[[:digit:]]{8}') | |
| # plesk_key_id: plsk000000000000 | lim_date: -1 |
| <# | |
| .Synopsis | |
| Plesk Licensing script | |
| .DESCRIPTION | |
| Plesk Licensing script | |
| This script intend to create a new license key in Plesk via API and | |
| retrieve the XML content of created key in a plesk node. |
This is the service I use. I think it is much better than something like dropbox.
| #New host | |
| #Create a bank LV the same size as the source | |
| lvcreate -L 400G -n kvm133_img vm_vg | |
| #Old Host | |
| #Creat a snapshot to stop any new data being written to the 400G LV, All changes get written to the snap lv now | |
| lvcreate --snapshot -L10G -n kvm133-snap /dev/4tb_raid_vg/kvm133_img |