Skip to content

Instantly share code, notes, and snippets.

View DonRichards's full-sized avatar

Don Richards DonRichards

View GitHub Profile
idc-solr-1 | fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
idc-solr-1 | fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
idc-solr-1 | (1/2) Installing libproc (3.3.17-r0)
idc-solr-1 | (2/2) Installing procps (3.3.17-r0)
idc-solr-1 | Executing busybox-1.33.1-r8.trigger
idc-solr-1 | OK: 202 MiB in 106 packages
idc-solr-1 | OK: 202 MiB in 106 packages
idc-drupal-1 | fastcgi_param DRUPAL_DEFAULT_SOLR_HOST "solr";
idc-drupal-1 | DRUPAL_DEFAULT_SOLR_HOST=solr
idc-drupal-1 | - Downloading drupal/search_api_solr (4.2.1)
idc-solr-1 | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
idc-solr-1 | [s6-init] ensuring user provided files have correct perms...exited 0.
idc-solr-1 | [fix-attrs.d] applying ownership & permissions fixes...
idc-solr-1 | [fix-attrs.d] done.
idc-solr-1 | [cont-init.d] executing container initialization scripts...
idc-solr-1 | [cont-init.d] 01-confd-render-templates.sh: executing...
idc-solr-1 | Waiting for up to 0 seconds to connect to etcd:2379
idc-solr-1 | confd using 'env' backend...
idc-solr-1 | 2022-09-12T14:04:31Z 2b4ce749bb00 confd[201]: INFO Backend set to env
idc-solr-1 | 2022-09-12T14:04:31Z 2b4ce749bb00 confd[201]: INFO Starting confd
@DonRichards
DonRichards / context.context.collection.yml
Created July 19, 2022 20:06
example collections context
uuid: d57b6db6-587f-4c9b-9f4c-e89246cf28fe
langcode: en
status: true
dependencies:
config:
- views.view.solr_search_content
module:
- islandora
- views
label: Collection
@DonRichards
DonRichards / isle-dc_debug_info.sh
Last active June 23, 2022 15:00
isle-dc debug info
#!/usr/bin/env bash
# To run this script
# bash <(curl -sL https://gist.githubusercontent.com/DonRichards/f23d333517db7a8da09df2a5641b36ec/raw/isle-dc_debug_info.sh) | tee output.txt
echo -e "\n\n--------- --------- ---------"
CURRENT_DIRECTORY_NAME=$(basename "$PWD")
# Check if the current directory contains isle-dc in the name
if [[ $CURRENT_DIRECTORY_NAME == *"isle-dc"* ]]; then
@DonRichards
DonRichards / README.md
Last active July 15, 2022 18:06 — forked from seth-shaw-unlv/generate-image-derivatives.php
Islandora script for triggering new derivatives (DRAFT)

How to run this script

git clone https://gist.github.com/DonRichards/cc6025eced330c325b4af96a15bf2cb4 check_derivatives
cd check_derivatives
drush --root=/var/www/drupal scr $(pwd)/check_derivatives/generate-image-derivatives.php

# OR just the single file
curl -O https://gist.githubusercontent.com/DonRichards/cc6025eced330c325b4af96a15bf2cb4/raw/generate-image-derivatives.php
@DonRichards
DonRichards / README.md
Last active July 1, 2022 14:39
Basic isle_dc install script

Build Isle-dc from 1 script on Cloud Provider

bash <(curl -sL https://gist.githubusercontent.com/DonRichards/e65b4e4d76101c30a7a8ab77160ac33f/raw/basic_isle_dc_install_script.sh)
This file has been truncated, but you can view the full file.
Generating Secrets
Generated or copied ACTIVEMQ_PASSWORD!
Generated or copied ACTIVEMQ_WEB_ADMIN_PASSWORD!
Generated or copied ALPACA_ACTIVEMQ_PASSWORD!
Generated or copied ALPACA_KARAF_ADMIN_PASSWORD!
Generated or copied CODE_SERVER_PASSWORD!
Generated or copied DB_ROOT_PASSWORD!
Generated or copied DRUPAL_DEFAULT_ACCOUNT_PASSWORD!
Generated or copied DRUPAL_DEFAULT_CONFIGDIR!
Generated or copied DRUPAL_DEFAULT_DB_PASSWORD!
@DonRichards
DonRichards / README.md
Last active March 28, 2022 19:49 — forked from mark-cooper/ascli
Load ArchivesSpace backend in a pry session

Useful Notes for developers

When starting run the below script then

 ./build/run backend:devserver  <-- 1st, Must be ran first and wait for this messsage
       ...
       [java] Mizuno 9.4.44 (Jetty 9.4.44.v20210927) listening on 0.0.0.0:4567

 ./build/run frontend:devserver <-- 2nd No need to wait to run the next
 ./build/run public:devserver   <-- 3rd No need to wait to run the next
 ./build/run indexer &lt;-- 4th
@DonRichards
DonRichards / isle_extra.sh
Last active February 25, 2022 20:58
isle-dc Developer Environment extra script (Islandora 2.0/8)
#!/usr/bin/env bash
: '
Change DIR_TO_ISLE to the directory where is is located.
What does this do
1. Exports Configs
2. Installs Drupal Console w/ alias
3. Add adminimal theme w/ adminimal's admin toolbar and sets it a the admin theme default
4. Installs Config delete module
/**
* Implements hook_preprocess_breadcrumb() for overriding breadcrumbs.
*
* Adds the title to the end of the breadcrumb.
*/
function theme_preprocess_breadcrumb(&$variables)
{
try{
if ($variables['breadcrumb'])
{