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 "orange.php" | |
* Ordinarily I wouldn't put everything in one file, | |
* but for this case, it will make the exercise much | |
* simpler and easier to run locally | |
* | |
* @author stovak | |
*/ |
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($){ | |
//function lines | |
})(jQuery) |
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 nebula_audit_entity_update($entity, $type) { | |
$orig_wrapper = entity_metadata_wrapper($type, $entity->original); | |
$new_wrapper = entity_metadata_wrapper($type, $entity); | |
$properties = $orig_wrapper->getPropertyInfo(); | |
$diffs = array(); | |
foreach ($properties as $key => $property) { | |
$old = $orig_wrapper->$key->value(); | |
$new = $new_wrapper->$key->value(); | |
if ($old !== $new) { | |
if (is_array($old)) { |
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
<exec command="ln -s default prod-${orgname}" logoutput="true" dir="CODEDIR/sites" /> | |
<exec command="ln -s ../all/{modules,themes} ." logoutput="true" dir="CODEDIR/sites/default" /> | |
add to git repo, checkin and push. |
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
if [[ $PLATFORM_NAME == "Redhat" ]]; then | |
display_header " | |
In order to a redhat install, we must download RPMs directly from RedHat. In order to do that, we must first register this system with redhat. | |
This requires a subscription to the RedHat network. | |
" | |
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
Started by user [8mha:AAAAoh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzuEgZx/dLi1CL94pL8ssRsh8SCzPTUVKDWXADKxjfDzAAAAA==[0mTom Stovall | |
Building in workspace /disk2/jenkins/jobs/9999 - migrate instance to pantheon/workspace | |
looking for '/disk2/jenkins/jobs/9999 - migrate instance to pantheon/workspace/apigee_build.xml' ... | |
use '/disk2/jenkins/jobs/9999 - migrate instance to pantheon/workspace' as a working directory. | |
[workspace] $ phing -buildfile "/disk2/jenkins/jobs/9999 - migrate instance to pantheon/workspace/apigee_build.xml" [email protected] -Denvironment=prod [email protected] -Dorgname=target ******** migrate-to-pantheon -logger phing.listener.DefaultLogger | |
Buildfile: /disk2/jenkins/jobs/9999 - migrate instance to pantheon/workspace/apigee_build.xml | |
[property] Loading /disk2/jenkins/.s3cfg | |
[8mha:AAAAZB+LCAAAAAAAAP9b85aBtbiIQSejNKU4P0+vIKc0PTOv |
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 | |
require_once (dirname(__FILE__)."/modules/custom/devconnect/lib/Apigee/Exceptions/InstallException.php"); | |
require_once (dirname(__FILE__)."/modules/custom/devconnect/lib/Apigee/Util/Crypto.php"); | |
function apigee_install_select_profile(&$install_state) { | |
$install_state['parameters']['profile'] = 'apigee'; |
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 | |
if (defined('PANTHEON_ENVIRONMENT')) { | |
// Use Redis for caching. | |
$conf['redis_client_interface'] = 'PhpRedis'; | |
$conf['cache_backends'][] = 'profiles/apigee/modules/contrib/redis/redis.autoload.inc'; | |
$conf['cache_default_class'] = 'Redis_Cache'; | |
$conf['cache_prefix'] = array('default' => 'pantheon-redis'); | |
// Do not use Redis for cache_form (no performance difference). |
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 | |
ssh -A -t jumpeast.apigee.net ssh $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
$url = parse_url($_SERVER["SCRIPT_URI"]); | |
$apath = explode("/", $url['path']); | |
if ( ( | |
$_SERVER['HTTP_HOST'] == "mktg-dev.apigee.com" || | |
$_SERVER['HTTP_HOST'] == "mktg-stg.apigee.com" || | |
$_SERVER['HTTP_HOST'] == "apigee.com" | |
) && ( | |
$apath[1] != "about" | |
)){ |