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 -i | grep 'Configure Command =>' | awk '{for(i=5; i<=NF; i++) {print substr($i, 2, (length($i) - 2))}}' |
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
WD system: migrate module enabled. [100.2 sec, 152.78 MB] [info] | |
WD system: panopoly_demo module installed. [100.56 sec, 152.91 MB] [info] | |
WD php: MigrateException: No migration found with machine name PanopolyDemoNode in MigrationBase::getInstance() (line 444 of [error] | |
/var/drupal/test-cedicp.dev/public/profiles/panopoly/modules/contrib/migrate/includes/base.inc). [100.6 sec, 151.65 MB] | |
MigrateException: No migration found with machine name PanopolyDemoNode in MigrationBase::getInstance() (line 444 of /var/drupal/test-cedicp.dev/public/profiles/panopoly/modules/contrib/migrate/includes/base.inc). | |
Drush command terminated abnormally due to an unrecoverable error. [100.6 sec, 151.64 MB] [error] |
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
Bootstrap to phase 0. [0.02 sec, 2.17 MB] [bootstrap] | |
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 2.31 MB] [bootstrap] | |
Loading drushrc "/var/www/cedijournal/public/sites/all/drush/drushrc.php" into "drupal" scope. [0.03 sec, 2.32 MB] [bootstrap] | |
Cache HIT cid: 5.9-commandfiles-0-d329cf8e5e828cd4fe0ec1004a7ee620 [0.05 sec, 2.33 MB] [debug] | |
Bootstrap to phase 0. [0.15 sec, 5.34 MB] [bootstrap] | |
Bootstrap to phase 0. [0.22 sec, 5.34 MB] [bootstrap] | |
Found command: make (commandfile=make) [0.23 sec, 5.34 MB] |
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
This is my simple make file I'm trying to test: | |
------------------------------------------------ | |
api = 2 | |
core = 7.x | |
projects[addressfield][version] = "1.0-beta5" | |
projects[addressfield][subdir] = "contrib" | |
projects[addressfield_tokens][version] = "1.4" | |
projects[addressfield_tokens][subdir] = "contrib" |
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
Component type: uuid_fpp | |
), | |
1 => array( | |
< 'admin_title' => '(about) Body text', | |
< 'bundle' => 'text', | |
< 'category' => 'Reusable Content', | |
< 'created' => 1409772563, | |
< 'field_basic_text_text' => array( | |
< 'und' => array( | |
< 0 => array( |
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 | |
# Make directories: log and backup at the $DIR. | |
# Move the '.s3cfg' file to the $DIR as well. | |
# NOTE: CHANGE ALL VARIABLES TO MATCH YOUR NEEDS! | |
# The name of the s3 bucket on Amazon. | |
S3BUCKET="REPLACE_BUCKET_NAME" |
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
/** | |
* Change content from one input format to another, deleting the old at the end. | |
* | |
* @param string $old_format | |
* Name of the old input format. | |
* @param string $new_type | |
* Name of the new input format. | |
*/ | |
function _myprofile_install_change_input_format($old_format, $new_format) { | |
// Change the format on all fields. |
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
# - xdebug | |
RUN echo xdebug.remote_enable=1 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
echo xdebug.remote_autostart=0 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
echo xdebug.remote_connect_back=1 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
echo xdebug.remote_port=9000 >> /etc/php5/conf.d/20-xdebug.ini;\ | |
echo xdebug.remote_log=/tmp/php5-xdebug.log >> /etc/php5/conf.d/20-xdebug.ini; |
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 | |
/*** Implements hook_views_query_alter(). | |
*/ | |
function oa_media_views_query_alter(&$view, &$query) { | |
if (($query->base_table == 'file_managed') && (!empty($view->filter['og_group_ref_target_id']->options['exposed']))) { | |
// Modify file views with space filters to handle media attached to nodes and paragraphs | |
// Ensure we have a relationship between og_membership and oa_media file | |
if (!empty($query->table_queue['field_oa_media_file_managed__og_membership'])) { | |
// Table already exists because user is probably filtering on space already |
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 -a | |
Interactive shell | |
php > $date = new DateTime('now'); | |
php > $timestamp = $date->format('U'); | |
php > var_dump($timestamp); | |
string(10) "1307626589" | |
php > $timestamp = $date->getTimestamp(); | |
php > var_dump($timestamp); | |
int(1307626589) |