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
cd /var/www/html/drupal/web/modules/contrib/islandora | |
git remote add danny https://github.com/dannylamb/islandora.git | |
git fetch danny | |
git checkout flysystem | |
cd ../islandora_image/ | |
git remote add danny https://github.com/dannylamb/islandora_image.git | |
git fetch danny | |
git checkout flysystem | |
cd ../openseadragon | |
git remote add danny https://github.com/dannylamb/openseadragon.git |
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
$filesystem = \Drupal::service('flysystem_factory')->getFilesystem('mydrive'); | |
$file_storage = \Drupal::service('entity_type.manager')->getStorage('file'); | |
$mime_guesser = \Drupal::service('file.mime_type.guesser'); | |
foreach($filesystem->listContents('/path/to/your/stuff') as $info) { | |
$mime = $mime_guesser->guess($info['path']); | |
$file = $file_storage->create([ | |
'uid' => 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
cd /var/www/html/drupal | |
composer require drupal/filehash ^1.1 | |
composer require drupal/prepopulate ^2.0@alpha | |
composer require drupal/eva ^1.3 | |
composer require drupal/features ^3.7 | |
composer require drupal/migrate_plus 4.0-beta3 | |
composer require drupal/migrate_tools 4.0-beta3 | |
composer require drupal/migrate_source_csv ^2.1 | |
composer require drupal/permissions_by_term ^1.51 | |
composer require drupal/context ^4.0 |
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 | |
# This version displays a warning to the screen about having the password on the command line. | |
# This can be disregarded or use the other script with mysql_config_editor | |
MYSQL_USER="drupal8" | |
MYSQL_PASS="islandora" | |
MYSQL_DB="drupal8" | |
cd /var/www/html/drupal/web |
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 | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) | |
# - test_idempotence: whether to test playbook's idempotence (default = true) |
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 islandora_node_insert(NodeInterface $node) { | |
_node_index($node); | |
} | |
function islandora_node_update(NodeInterface $node) { | |
dsm("IN NODE UPDATE"); | |
_node_index($node); | |
} |
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
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_mimetype | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_height | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_width | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_image | |
/var/www/html/drupal/vendor/bin/drush --y pmu islandora |
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
ubuntu@claw:/var/www/html/drupal/web/modules/contrib/islandora$ drupal config:override | |
Enter configuration name [at_core.settings]: | |
> system.file | |
Enter the configuration key [allow_insecure_uploads]: | |
> temporary_maximum_age | |
Enter the configuration value: | |
> 1 | |
Configuration name system.file |
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
cd /var/www/html/drupal/web/ | |
/var/www/html/drupal/vendor/bin/drush --y pmu islandora_image | |
/var/www/html/drupal/vendor/bin/drush --y pmu islandora_collection | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_mimetype | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_height | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_width | |
/var/www/html/drupal/vendor/bin/drupal config:delete active field.field.media.tn.field_image | |
/var/www/html/drupal/vendor/bin/drush --y pmu islandora | |
cd /var/www/html/drupal/web/modules/contrib/islandora | |
git remote add danny https://github.com/dannylamb/islandora.git |
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
from("timer:foo?period=5000") | |
.setHeader("IslandoraExchangePattern", constant("InOut")) | |
.setHeader("IslandoraBroadcastRecipients", constant("activemq:queue:testA,activemq:queue:testB")) | |
.to("{{input.stream}}") | |
.log(INFO, LOGGER, "RECEIVED FROM B: ${body}"); | |
from("activemq:queue:testA") | |
.log(INFO, LOGGER, "Waiting 2 seconds in A") | |
.process((exchange -> Thread.sleep(2000))) | |
.log(INFO, LOGGER, "Finished waiting in A") |