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
| AuthName "Protected Access" | |
| AuthType Basic | |
| AuthBasicProvider ldap | |
| AuthzLDAPAuthoritative off | |
| AuthLDAPURL ldap://server.fqdn/cn=users,dc=<domain>,dc=com?uid | |
| require valid-user | |
| ## The user should be a member of a certain group: | |
| # AuthLDAPGroupAttribute memberUid | |
| # AuthLDAPGroupAttributeIsDN off | |
| # require ldap-group cn=<group>,cn=groups,dc=<domain>,dc=com |
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
| /usr/local/apache/current/logs/access_log | |
| /usr/local/apache/current/logs/error_log | |
| /usr/local/apache/current/ssl_engine_log | |
| /usr/local/apache/current/ssl_scache.pag { | |
| rotate 3 | |
| compress | |
| missingok | |
| size 15M | |
| postrotate | |
| /usr/bin/killall -HUP /usr/local/apache/current/bin/httpd |
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
| # Begin Leverage Browser Caching | |
| <IfModule mod_expires.c> | |
| # Enable expirations | |
| ExpiresActive on | |
| # Default directive | |
| ExpiresDefault "access plus 1 hour" | |
| # Favicon |
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
| /* | |
| Getting “warning: Table 'dbname.semaphore' doesn't exist query: SELECT expire, value FROM semaphore” | |
| when updating DB or running Drush commands. | |
| Try running this query on your database. | |
| */ | |
| CREATE TABLE semaphore ( `name` VARCHAR(255) NOT NULL DEFAULT '', `value` VARCHAR(255) NOT NULL DEFAULT '', `expire` DOUBLE NOT NULL, PRIMARY KEY (name), INDEX expire (expire) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ |
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
| # download a copy of current version and new updated drupal software. | |
| drush dl drupal-<<original verion>> | |
| drush dl drupal-<<new version>> | |
| # Use diff to create a patch of directories. | |
| diff -urN drupal-<<original verion>> drupal-<<new version>> > drupal-<<orig>>-to-<<new>>.patch |
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
| #!/usr/bin/env bash | |
| set -o errtrace | |
| set -o errexit | |
| facter_version=$1 | |
| puppet_version=$2 | |
| target_volume=$3 |
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 | |
| # | |
| # A mysql replication plugin for the check_mk nagios system. | |
| # Place me in /usr/lib/check_mk_agent/local on the client | |
| # | |
| # Hereward Cooper <coops@iomart.com> - 16/06/11 | |
| MYSQL_USER="root" | |
| MYSQL_PASS="PAassw0rd" |
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
| # Set Printer as Default | |
| prName="HP_LaserJet_4015" | |
| lpoptions -d "${1}" |
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
| lpstat -p | awk '{print $2}' |
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
| # print test page | |
| prName="$1"; | |
| lp /usr/share/cups/data/testprint.ps |