Skip to content

Instantly share code, notes, and snippets.

View totojack's full-sized avatar

Luca Iovio totojack

View GitHub Profile
@totojack
totojack / gist:4db892bf6d9b03b3b982401fedd8c2f6
Created May 10, 2016 15:23
terraform 0.6.16 - Vmware Vsphere Provider - ipv4_gateway not saved in tfstate file log
vsphere_folder.testfolder: Refreshing state... (ID: DC1/TEST/Vms)
vsphere_virtual_machine.web: Refreshing state... (ID: TEST/Vms/terraform-web)
vsphere_virtual_machine.web: Destroying...
vsphere_virtual_machine.web: Destruction complete
vsphere_virtual_machine.web: Creating...
cluster: "" => "CLU01"
datacenter: "" => "DC1"
disk.#: "" => "3"
disk.0.bootable: "" => "false"
disk.0.datastore: "" => "DSCLU-01/SAS-006"
@totojack
totojack / gist:892321adba4594d147a86407e16bcda0
Created January 16, 2017 20:14
docker container files backup
#mysqldump
docker exec CONTAINER sh -c 'exec mysqldump -u BKPUSER -pBKPPWD -h localhost DATABASE' | $GZIP -9 > $NOW.gz
#tar gz
docker cp CONTAINER:/custom/dir - | gzip > $FILE
-new certificate in standalone mode
certbot certonly --standalone --email my@mail.com --agree-tos -d www.my.domain
-renew all certficates in standalone mode
certbot renew