#!/bin/bash -e
ARGUMENT_LIST=(
"arg-one"
"arg-two"
"arg-three"
)
This file contains hidden or 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
| // compile with | |
| // g++ -std=c++11 test_log_default.cpp -DBOOST_LOG_DYN_LINK -lboost_log -lboost_thread -lpthread -lboost_system | |
| #include <iostream> | |
| #include <boost/log/expressions.hpp> | |
| #include <boost/log/sources/severity_channel_logger.hpp> | |
| #include <boost/log/sources/record_ostream.hpp> | |
| #include <boost/log/utility/setup/console.hpp> | |
| #include <boost/log/utility/setup/common_attributes.hpp> | |
| #include <boost/log/utility/setup/file.hpp> | |
| #include <boost/log/sinks.hpp> |
This file contains hidden or 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 | |
| cd ${myVMs} | |
| MyVM=testvm | |
| vboxmanage unregistervm ${MyVM} --delete | |
| rm -rf ${MyVM} | |
| mkdir ${MyVM} | |
| cd ${MyVM} | |
| vboxmanage createhd --filename ${MyVM}.vdi --size 30720 | |
| vboxmanage createvm --name ${MyVM} --ostype RedHat_64 --register | |
| vboxmanage modifyvm ${MyVM} --memory 6172 --vram=12 --acpi on --nic1 NAT # optional second NIC # --nic2 bridged --bridgeadapter2 enp0s25 |
This file contains hidden or 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
| #include <type_traits> | |
| template <typename...> | |
| struct IsOneOf | |
| { | |
| static constexpr bool value = false; | |
| }; | |
| template <typename T, typename S, typename... Ts> | |
| struct IsOneOf<T, S, Ts...> |
This file contains hidden or 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
| sudo yum install libmpc-devel mpfr-devel gmp-devel | |
| cd ~/Downloads | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O | |
| tar xvfj gcc-4.9.2.tar.bz2 | |
| cd gcc-4.9.2 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j 4 | |
| make install |