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
| drush -l local.graphite.org vset preprocess_js 0 --yes | |
| drush -l local.graphite.org vset preprocess_css 0 --yes | |
| drush -l local.graphite.org pm-disable -y masquerade | |
| drush -l local.graphite.org pm-disable -y cdn | |
| drush -l local.graphite.org vset honeypot_time_limit 0 --yes | |
| drush -l local.graphite.org vset error_level 2 --yes | |
| drush -l local.graphite.org vset csm_migration_d6_hostname local.csm.org --yes | |
| drush -l local.graphite.org vset tlr_csm_sync_csm_api_host local.csm.org --yes |
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 | |
| $databases = array ( | |
| 'default' => | |
| array ( | |
| 'default' => | |
| array ( | |
| 'database' => 'graphite_150623', | |
| 'username' => 'graphite', | |
| 'password' => 'graphite', |
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
| [docker version] | |
| Client version: 1.5.0 | |
| Client API version: 1.17 | |
| Go version (client): go1.4.1 | |
| Git commit (client): a8a31ef | |
| OS/Arch (client): darwin/amd64 | |
| Server version: 1.5.0 | |
| Server API version: 1.17 | |
| Go version (server): go1.4.1 | |
| Git commit (server): a8a31ef |
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
| $api_info = variable_get('csm_api_info'); | |
| // the third TRUE param sets to use DEV api server. Remove for launch. | |
| $api = new CommonSenseApi($api_info['clientId'], $api_info['appId'], TRUE); | |
| // Get education API instance. | |
| // There are two magic methods to fetch data from the API | |
| // <type>_list($options) and <type>_item($id, $options) | |
| // where <type> is one of: products, blog, app_flows, lists, user_reviews, boards | |
| $education = $api->education(); |
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
| ########### | |
| # LOCAL # | |
| ########### | |
| # Copy Acquia ssh key for Git access. | |
| scp -i ~/.ssh/cs_education.key ~/.ssh/acquia_graphite_rs* root@ec2-54-215-27-192.us-west-1.compute.amazonaws.com:/root/.ssh/ | |
| ############ | |
| # SERVER # | |
| ############ | |
| # Change ssh key access. |
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
| # Branch DEV has extra files and commits that are not needed anymore | |
| # DEV is to be a mirror of MASTER | |
| # Get the latest DEV branch | |
| git checkout DEV | |
| git pull origin DEV | |
| # Get the latest MASTER branch | |
| git checkout MASTER | |
| git pull origin MASTER |
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
| <div class="coming-soon"> | |
| <h1><?php print $node->title; ?></h1> | |
| This is a coming soon review | |
| </div> |
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($) { | |
| Drupal.behaviors.drinks = { | |
| attach: function(context, settings) { | |
| var drinkType = settings.drinks.page_type; | |
| alert('This page is of type: ' + drinkType); | |
| } | |
| } | |
| })(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
| <?php | |
| function tlr_blog_preprocess_node(&$variables) { | |
| global $user; | |
| $node = $variables['node']; | |
| if ($node->type == 'tlr_blog') { | |
| $blog = new TLRBlog($node->nid); | |
| $account = $blog->get_user(); |