This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Virtual destructor test | |
* ----------------------- | |
* compile using: | |
* cc -std=c++11 -o destructor_test destructor_test.cc -lstdc++ | |
* | |
* when class `A` does not define a virtual destructor the program prints: | |
* data constructed | |
* rationale: | |
* when a pointer typed to class `A` is used to delete an instance of class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_platform: &default_platform el-7-x86_64 | |
default_image: &default_image centos_7_x86_64 | |
default_user: &default_user centos | |
HOSTS: | |
mom: | |
roles: | |
- master | |
- database | |
- dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_platform: &default_platform el-7-x86_64 | |
default_image: &default_image centos_7_x86_64 | |
default_user: &default_user centos | |
HOSTS: | |
mom: | |
roles: | |
- master | |
- database | |
- dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGETDIR="${1}" | |
CA_KEY="${TARGETDIR}/cakey.pem" | |
CA_CRT="${TARGETDIR}/cacert.pem" | |
SERVER_KEY="${TARGETDIR}/server.key" | |
SERVER_CSR="${TARGETDIR}/server.csr" | |
SERVER_CRT="${TARGETDIR}/server.crt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list = [ | |
{ :path => 'path_C', :name => 'vm_x' }, | |
{ :path => 'path_a', :name => 'vm_y' }, | |
{ :path => 'path_b', :name => 'vm_z' }, | |
{ :path => 'path_d', :name => 'vm_b' }, | |
{ :path => 'path_D', :name => 'vm_a' }, | |
] | |
def build_output_michal(list) | |
result_map = {} |