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 creates virtual hosts and prepares your mysql DB and drupal directory. | |
# you should put it under /usr/local/bin/ | |
# and run it with sudo newsite | |
# Set the path to your localhost | |
www=/var/www | |
echo "Enter directory name under $www" | |
read sn |
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 | |
/** | |
* Implements hook_mail_alter() | |
* Send mails to a file for easy debugging | |
*/ | |
function mail_themer_mail_alter(&$message) { | |
$debug_dir = file_directory_temp() . '/mail_debug'; | |
$debug_file = $debug_dir . '/mail_debug.html'; |
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($) { | |
// equalHeights - compare two or more elements and animate them all to the | |
// same (min-)height. | |
// You'll need jQuery for this to work. | |
$.fn.equalHeight = function() { | |
var heights = []; | |
var height; | |
$(this).each(function() { | |
// Cache the current height. |
NewerOlder