pvesh get /cluster/nextid
pct create 100 \
local:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz \
--cores 2 --cpuunits 1024 \
| #!/bin/bash | |
| #Paths are for Centos 7.x | |
| # Install optional packages | |
| /usr/bin/yum install -y epel-release | |
| /usr/bin/yum install -y bash-completion htop yum-utils dkms open-vm-tools | |
| #stop logging services | |
| /sbin/service rsyslog stop | |
| /sbin/service auditd stop |
| #!/usr/bin/env bash | |
| #When executing the script keep the main db dump in another folder. | |
| AWK=awk | |
| REGEX_NAME="Current Database: \`(.*)\`" | |
| # Checks argument and prints usage if needed | |
| if [ "$#" -lt "1" ] | |
| then |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE > backup.sql | |
| docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | gzip > backup.sql.gz | |
| docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | bzip2 > backup.sql.bz2 | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
| gunzip < backup.sql.gz | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
| bunzip2 < backup.sql.bz2 | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE |
| #------------------------------------------------------------------------------------- | |
| # Create Self signed root certificate | |
| # -dnsname -DnsName domain.example.com,anothersubdomain.example.com | |
| # -Subject "CN=Patti Fuller,OU=UserAccounts,DC=corp,DC=contoso,DC=com" | |
| $cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature ` | |
| -Subject "CN=P2SRootCert" ` | |
| -KeyExportPolicy Exportable ` | |
| -HashAlgorithm sha256 -KeyLength 4096 ` | |
| -CertStoreLocation "Cert:\CurrentUser\My" ` | |
| -KeyUsageProperty Sign ` |
| ### NON SSL | STANDARD HTTP | |
| server { | |
| listen 80; | |
| server_name domain.com; | |
| root /path/to/whmcs; | |
| index index.php index.html; | |
| access_log /var/log/nginx/domain.com.log combined; | |
| access_log /var/log/nginx/domain.com.bytes bytes; | |
| error_log /var/log/nginx/domain.com.error.log error; | |
| location / { |
Use your text editor of choice or if you don't have one use Windows Notepad
Opening with Notepad may or may not result in a fancy mess
%appdata%/Spotify¤storage.size=1024