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 <boost/mpl/at.hpp> | |
| #include <boost/mpl/size.hpp> | |
| #include <boost/variant/variant.hpp> | |
| #include <type_traits> | |
| namespace { | |
| template <size_t N> | |
| struct emplace_nth_helper { | |
| template <typename Variant> |
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> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <stdexcept> | |
| #include <cassert> | |
| #include <cstring> | |
| #include <endian.h> | |
| // TODO: Add 2 byte, 4 byte read_le | |
| // Check everything works with other word sizes. |
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
| [andrew@zuul network]$ cat guest.network | |
| [Match] | |
| Name=guest0 | |
| [Network] | |
| Address=192.168.3.1/24 | |
| [andrew@zuul network]$ cat guest0.netdev | |
| [NetDev] | |
| Name=guest0 | |
| Kind=vlan |
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 | |
| OPENSSL_VERSION="1.0.1g" | |
| curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_i386 | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
| cd openssl_i386 |
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 <template <typename...> class With, typename T> inline | |
| decltype(auto) | |
| make_with_guard (T& value) { | |
| return With<T>(value); | |
| } | |
| #define PP_CAT(A, B) PP_CAT_X(A, B) | |
| #define PP_CAT_X(A, B) A ## B |
NewerOlder