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 Files Restrict | |
<Files {sensitive-file.php}> | |
Order deny,allow | |
Deny from all | |
allow from env=allowclient | |
SetEnvIf X-Cluster-Client-Ip {nnn.nnn.nnn.nnn} allowclient | |
</Files> | |
# END Files Restrict |
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 | |
# | |
################################################ | |
# Vagrant Local Site Configurator # | |
# Written by Brendan Corcoran, Dave Tate for NJI Media # | |
# # | |
# Usage: ./newsite.sh -OR- sh newsite.sh # | |
################################################ | |
# Configure Vagrant/VM Sites directories |
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
/* Accept forwarded protocol from load balancer */ | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){ | |
$_SERVER['HTTPS']='on'; | |
} |
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
du -k /Documents/ | sort -n | tail -10 |
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
diff --git a/wp-content/plugins/widget-context/widget-context.php b/wp-content/plugins/widget-context/widget-context.php | |
index 477574a..dd88576 100755 | |
--- a/wp-content/plugins/widget-context/widget-context.php | |
+++ b/wp-content/plugins/widget-context/widget-context.php | |
@@ -415,15 +415,47 @@ class widget_context { | |
function context_check_url( $check, $settings ) { | |
+ global $wp; | |
+ $current_path = trim( $wp->request ); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase / | |
# Remove index.html if entered | |
RewriteCond %{REQUEST_URI} ^/index.html$ | |
RewriteRule (.*) / [R=301,L] | |
# Remove display of .html for any html file request | |
RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.html\ HTTP | |
RewriteRule ^(.+)\.html$ http://%{HTTP_HOST}/$1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-f |
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/sh | |
# Post deployment routine | |
# | |
# Syncs files from webroot deployed with source-controlled | |
# dir name to Rackspace Cloud Sites webroot dir, 'content' | |
mount="/mnt/stor{***}/{******}/{******}" | |
domain="sub.domain.com" | |
webroot_source="web" # Webroot according to source-control | |
webroot_apache="content" # Webroot Apache will be serving |
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/sh | |
# http://www.rackspace.com/knowledge_center/article/how-to-use-cron-to-backup-cloudsites-to-cloudfiles | |
# Extract archive | |
#Set information specific to your site | |
webroot="www.domain.com" | |
backupname="2015-01-31_13:34/web.tar.gz" | |
#Backup Site |
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/sh | |
# http://www.rackspace.com/knowledge_center/article/how-to-use-cron-to-backup-cloudsites-to-cloudfiles | |
# Set information specific to your site. | |
domainroot="www.domain.com" | |
db_host="mysqlnn-nnn.abcd.stabletransit.com" | |
db_user="nnnnnn_abcd_dbu" | |
db_password="**********" | |
db_name="nnnnnn_abcdefg" | |
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
# ht: http://natelandau.com/my-mac-osx-bash_profile/ | |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching |