Skip to content

Instantly share code, notes, and snippets.

View kyleskrinak's full-sized avatar

Kyle Skrinak kyleskrinak

  • Gilead Sciences
  • Raleigh, NC
  • 05:59 (UTC -04:00)
View GitHub Profile
#!/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
/**
* 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';
}
function vhost {
sudo ~/.dotfiles/osx/mamp_vh.sh $1
}
<?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:
@kyleskrinak
kyleskrinak / drupal-quick-dump.sh
Last active March 22, 2016 12:12 — forked from timmillwood/drupal-quick-dump.sh
Adding hours/mins to the date variable, as I may run this many times during theme development
#!/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"