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 | |
# Set the profile you want to use for MFA | |
SOURCE_PROFILE="default" | |
MFA_PROFILE="mfa" | |
# Read the MFA device ARN from the credentials file | |
MFA_DEVICE_ARN=$(aws configure get mfa_device_arn --profile $SOURCE_PROFILE) | |
if [ -z "$MFA_DEVICE_ARN" ]; then | |
echo "Error: MFA device ARN not found in the ~/.aws/credentials file for profile $SOURCE_PROFILE" |
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 | |
class MigratePikolorArticleMigration extends PikolorBase { | |
public function __construct($arguments) { | |
parent::__construct($arguments); | |
$text_format = 'full_html'; | |
$this->language = 'ro'; | |
$this->file_source = drupal_realpath('public://') . '/posts'; |
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 | |
/** | |
* Add full_html where format is null | |
*/ | |
function mymodule_core_update_7110() { | |
$widgets = array('text_textarea', 'text_textarea_with_summary'); | |
$translate_fields = variable_get('smartling_translate_fields', array()); | |
$fields_need_update = array(); |