Skip to content

Instantly share code, notes, and snippets.

View MKorostoff's full-sized avatar

Matt Korostoff MKorostoff

View GitHub Profile
<?php
/**
* Add custom scripts
*/
function matt_page_alter(&$page) {
$page['#attached']['library'][] = 'matt/matt-corescripts';
}
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
#!/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)
#!/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)
<?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);
<VirtualHost *:80>
DocumentRoot '/var/www/golfchannel/docroot/'
ServerName golfchannel.com
</VirtualHost>
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
#!/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
<?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' => '',
<?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',