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
require File.expand_path("/usr/local/Library/Taps/homebrew/homebrew-php/Requirements/php-meta-requirement", __FILE__) | |
class Drush < Formula | |
desc "A command-line shell and scripting interface for Drupal" | |
homepage "https://github.com/drush-ops/drush" | |
url "https://github.com/drush-ops/drush/archive/7.x.tar.gz" | |
sha1 "6e648c6056a6a6d738ad5665ce842083b22e7e61" | |
version "7.0-dev" | |
head do |
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
export PATH=${PATH}:/usr/local/sbin | |
export PATH=/usr/local/bin:${PATH} | |
export PATH=${PATH}:~/bin | |
export PS1="\u:\w$ " | |
# alias composer="php /usr/bin/composer.phar" | |
alias ppp="php app/console" | |
alias chrome='open -n -a "Google Chrome.app" --args --auth-server-whitelist="*.stanford.edu" --auth-negotiate-delegate-whitelist="*.stanford.edu"' |
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/csh | |
# If dir exists empty it. | |
if [ -d /httpdocs/$1.su.dev ]; then | |
cd /httpdocs/$1.su.dev | |
drush sql-drop -y | |
cd ../ | |
sudo rm -Rf /httpdocs/$1.su.dev | |
fi |
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 | |
## STANFORD WILDCARD ########################################################### | |
// The command you just typed in shell. | |
$command = $_SERVER['argv']; | |
$remote_user = "sheamck"; | |
// Look at every argument... | |
foreach ($command as $arg) { |
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 | |
* Filter based on a list of words/phrases. | |
* This file is a copy of the default keyword_filter plugin except it has been | |
* modified to work with an array of values as well as single strings. | |
*/ | |
$plugin = array( |
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 | |
* Feeds Tamper Plugin | |
* Provides a sub xpath selector for parsing xml for field collections with | |
* multiple value fields. | |
*/ | |
/** | |
* Plugin definition |
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
$fields = array( | |
'field_my_fields' => 'field_my_new_field', | |
'field_other_field' => 'field_adam_west', | |
); | |
// Loop through each of the fields/tables with the old name and change them | |
foreach($fields as $field_name => $new_field_name) { | |
// First check that field_name exists | |
if(!db_table_exists('field_data_' . $field_name)) { |
NewerOlder