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
# Inside jail we need to install mDNSResponder to properly answer DNS requests | |
pkg install mDNSResponder | |
# /usr/local/etc/mdnsresponder.conf | |
fancy | |
_http._tcp. local. | |
80 | |
# /etc/rc.conf | |
mdnsresponderposix_enable="YES" |
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
git diff --name-only <commit1> <commit2> | findstr /N /F:/ <string to lookup> |
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> | |
// Determine if `Instance` is instantiation of template | |
// e.g. static_assert(is_template<std::vector<int>>::value); | |
template<class Instance> struct is_template : std::false_type {}; | |
template<class ...TemplateArgs, template<class...> class Template> | |
struct is_template<Template<TemplateArgs...>> : std::true_type {}; | |
// Determine if `Instance` is instance of `Template` | |
// e.g. static_assert(is_instance_of_template<std::vector, std::vector<int>>::value); |