Skip to content

Instantly share code, notes, and snippets.

View donjohnson's full-sized avatar

Don Johnson donjohnson

View GitHub Profile
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule ^/.* - [E=downgrade-1.0:1]
RewriteRule ^/.* - [L,E=force-response-1.0:1]
</IfModule>
@donjohnson
donjohnson / gist:1271244
Created October 7, 2011 20:10
puppet scope/graph issue
this server gets the "mco" class from the node script definition.
class mco{
include virtual::packages::mco
#etc
}
there is then a "virtual" (name) module, mostly for virtual resources, with a packages.pp:
class virtual::packages {
$ ./configure
[...]
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes