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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=$1 # <-- wordpress owner | |
WP_GROUP=$2 # <-- wordpress group |
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
/** | |
* Implementation of hook_entity_info_alter(). | |
* | |
* Redirect any links to groups taxonomy terms to their corresponding node | |
* page. | |
*/ | |
function term_redirect_entity_info_alter(&$entity_info) { | |
$entity_info['taxonomy_term']['uri callback'] = 'term_redirect_taxonomy_term_uri'; | |
} | |
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
function vhost { | |
sudo ~/.dotfiles/osx/mamp_vh.sh $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
<?php | |
/** | |
* @file | |
* local.settings.php | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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 | |
# usage: drupal-quick-dump user host database D8 ("D8" is optional) | |
# remember to chmod u+x drupal-quick-dump.sh | |
BOLD="$(tput bold)" | |
RED="$(tput setaf 1)" | |
GREEN="$(tput setaf 2)" | |
MAG="$(tput setaf 5)" | |
RESET="$(tput sgr0)" | |
USER="$1" |