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
# go to a drupal module folder, from anywhere in the site hierarchy, | |
# with autocompletion | |
function dm { | |
drroot; | |
cd sites/all/modules; | |
#echo contrib/$1; | |
if [ -d "contrib/$1" ] | |
then | |
cd "contrib/$1"; | |
elif [ -d "custom/$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
#!/bin/sh | |
# Removes an existing Drupal 8 install, then install again. | |
# Requires Drush 7 - https://github.com/drush-ops/drush | |
# | |
# Run this script from the docroot of a Drupal 8 checkout. | |
# Installs to mysql://localhost/drupal, user 1 user/pass is admin/admin. | |
# Variables. | |
# These should be customized to your setup. |
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
$trace = debug_backtrace(); | |
foreach ($trace as $trace_item) { | |
$debug[] = $trace_item['function']; | |
} | |
debug($debug); | |
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
# Don't remember where I originally got this. | |
# I've expanded the original one liner script to allow a parameter which opens the new window in a specified subfolder (or any folder, just type a relative path if you can be bothered with the fiddly bits). | |
# open a new Terminal window in either the current folder, or a subfolder | |
# if given. | |
if [ -z "$1" ] # No argument passed? | |
then | |
osascript -e "tell application \"Terminal\" to do script \"cd `pwd`\"" | |
else | |
echo $1 |
NewerOlder