This file contains 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 | |
/** | |
* Add custom scripts | |
*/ | |
function matt_page_alter(&$page) { | |
$page['#attached']['library'][] = 'matt/matt-corescripts'; | |
} |
This file contains 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
zend_extension=/usr/local/php5/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so | |
[xdebug] | |
xdebug.remote_enable=on | |
xdebug.default_enable=on | |
xdebug.remote_autostart=off | |
xdebug.remote_port=9000 | |
xdebug.remote_host=localhost | |
;xdebug.profiler_enable_trigger=1 | |
;xdebug.profiler_output_name=xdebug-profile-cachegrind.out-%H-%R | |
xdebug.var_display_max_children = 128 |
This file contains 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 | |
# | |
# @author Matt Korostoff <mkorostoff@gmail.com> | |
# | |
# @internal stop and then restart varnish | |
# | |
# @category apache | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) |
This file contains 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 | |
# | |
# @author Matt Korostoff <mkorostoff@gmail.com> | |
# | |
# @internal start varnish on port 80, switch apache to 8000 | |
# | |
# @category apache | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) |
This file contains 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 | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://YOUR_URL_HERE.COM"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$output = curl_exec($ch); | |
curl_close($ch); |
This file contains 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
<VirtualHost *:80> | |
DocumentRoot '/var/www/golfchannel/docroot/' | |
ServerName golfchannel.com | |
</VirtualHost> |
This file contains 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
if OS.mac? and MacOS.version < "10.5" | |
abort <<-EOABORT.undent | |
Homebrew requires Leopard or higher. For Tiger support, see: | |
https://github.com/mistydemeo/tigerbrew | |
EOABORT | |
end |
This file contains 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 | |
BREW_FILE_DIRECTORY=$(dirname "$0") | |
BREW_FILE_DIRECTORY=$(cd "$BREW_FILE_DIRECTORY" && pwd -P) | |
BREW_FILENAME=$(basename "$0") | |
export HOMEBREW_BREW_FILE="$BREW_FILE_DIRECTORY/$BREW_FILENAME" | |
BREW_SYMLINK=$(readlink $0) | |
if [ -n "$BREW_SYMLINK" ] | |
then |
This file contains 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 | |
include_once DRUPAL_ROOT . "/sites/golfchanneldev.prod.acquia-sites.com/settings.php"; | |
$conf['stage_file_proxy_origin'] = 'http://www.golfchannel.com'; | |
//D7 DB config | |
$databases = array('default' => array('default' => array( | |
'driver' => 'mysql', | |
'database' => 'golfchannel', | |
'username' => 'matt', | |
'password' => '', |
This file contains 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 | |
$aliases['golf.local'] = array( | |
'uri' => 'golfchannel.local', | |
'root' => '/Users/matt/Sites/golfchannel/docroot', | |
'path-aliases' => array('%dump-dir' => '/mnt/tmp/golfchannel'), | |
); | |
// Site golfchannel, environment dev | |
$aliases['golf.dev'] = array( | |
'uri' => 'golfchanneldev.prod.acquia-sites.com', | |
'env' => 'dev', |