Skip to content

Instantly share code, notes, and snippets.

View McFateM's full-sized avatar

Mark McFate McFateM

View GitHub Profile
@McFateM
McFateM / 021-rebuilding-isle-ld.md
Created July 5, 2019 21:24
ISLE.localdomain Output from Theme Install

╭─markmcfate@ma8660 ~/Projects/ISLE ‹ruby-2.3.0› ‹ld*› ╰─$ docker exec -it isle-apache-ld bash root@9bec4edd3964:/# cd /var/www/html root@9bec4edd3964:/var/www/html# root@9bec4edd3964:/var/www/html# cd /var/www/html/sites/all/themes root@9bec4edd3964:/var/www/html/sites/all/themes# git clone https://github.com/drupalprojects/bootstrap.git Cloning into 'bootstrap'... remote: Enumerating objects: 12635, done. remote: Total 12635 (delta 0), reused 0 (delta 0), pack-reused 12635 Receiving objects: 100% (12635/12635), 2.83 MiB | 5.60 MiB/s, done.

@McFateM
McFateM / 021-rebuilding-isle-ld.md
Created July 5, 2019 21:26
ISLE.localdomain Output from IMI Install

root@f074939ac338:/var/www/html/sites/default# cd /var/www/html/sites/all/modules/islandora root@f074939ac338:/var/www/html/sites/all/modules/islandora# git clone https://github.com/mnylc/islandora_multi_importer.git Cloning into 'islandora_multi_importer'... remote: Enumerating objects: 14, done. remote: Counting objects: 100% (14/14), done. remote: Compressing objects: 100% (11/11), done. remote: Total 970 (delta 5), reused 8 (delta 3), pack-reused 956 Receiving objects: 100% (970/970), 647.07 KiB | 3.11 MiB/s, done. Resolving deltas: 100% (670/670), done. root@f074939ac338:/var/www/html/sites/all/modules/islandora# chown -R islandora:www-data *

@McFateM
McFateM / 021-rebuilding-isle-ld.md
Created July 6, 2019 02:00
ISLE.localdomain Database Restore Warnings
User warning: The following module is missing from the file system: masquerade. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/includes/bootstrap.inc).
User warning: The following module is missing from the file system: announcements. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/includes/bootstrap.inc).
User warning: The following module is missing from the file system: dg7. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/includes/bootstrap.inc).
User warning: The following module is missing from the file system: email. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/includes/bootstrap.inc).

User warning: The fol

@McFateM
McFateM / gist:7af92bb51a239d1a36df06a4fa629a94
Created August 8, 2019 17:20
local.env for 034-building-isle-1.2.0-ld
## ISLE Local
## This local.env file is used with / for the docker-compose.local.yml
## Windows user should uncomment the following line:
# COMPOSE_CONVERT_WINDOWS_PATHS=1
## Database (SQL)
### MySQL root password
@McFateM
McFateM / gist:c5def81467d2dfc9c378c4637a690104
Created August 8, 2019 19:18
local.sh For 034-Building-ISLE-1.2.0-ld.md
#!/bin/bash
# Replace the following with your intended Local environment values
# Add the name of your local site name to .localdomain.key e.g yourprojectnamehere.localdomain.key
# Add the name of your local site name to .localdomain.pem e.g yourprojectnamehere.localdomain.pem
# Add the name of your local site name to CN=.localdomain e.g CN=acyourprojectnamehereme.localdomain
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout ../../../config/proxy/ssl-certs/dg.localdomain.key -out ../../../config/proxy/ssl-certs/dg.localdomain.pem \
-subj "/C=US/O=Islandora Collaboration Group/OU=Domain Control Validated/CN=dg.localdomain"
@McFateM
McFateM / MODS_Master_Rev_14.twig
Created October 1, 2019 01:40
Digital_Grinnell_MODS_Master Twig Template for IMI, revision 14
<?xml version="1.0" encoding="UTF-8"?>
{# Digital_Grinnell_MODS_Master.twig Revision 14
This TWIG template for IMI import is intended to serve as a general-purpose
starting point for MODS import into Digital Grinnell.
The canonical copy of this Twig is part of a 4-tab Google Sheet named
Digital_Grinnell_MODS_Master. Its address is: https://docs.google.com/spreadsheets/d/1G_pQgKJwtgBZYDAHcMC7dCTOnwexIYGHjarHPFKaAOg
@McFateM
McFateM / local.env
Created November 3, 2019 19:47
Customized 'local.env'
## ISLE Local
## This local.env file is used with / for the docker-compose.local.yml
## Windows user should uncomment the following line:
# COMPOSE_CONVERT_WINDOWS_PATHS=1
## Database (SQL)
### MySQL root password
@McFateM
McFateM / collections.list
Last active March 19, 2020 19:04
Digital.Grinnell master collections list. Updated 19-Mar-2020
alumni-oral-histories
ancient-coins
archives-suppressed
campus-collections
college-buildings
college-handbooks
college-history
college-life
curricular-materials
digital-stories-social-justice
@McFateM
McFateM / mods-via-twig.md
Created April 17, 2020 20:21
The History of MODS-via-Twig (mvt)

MODS-via-Twig

This project now resides in mark@Marks-Mac-Mini ~/GitHub/lando-d8 ‹8.6.x*› where I'm attempting to spin up a local Drupal 8 instance using Lando. In this instance there is a set of files and directories at ~/GitHub/lando-d8/sites/default/files, namely:

  • main.php - my primary PHP script for this work
  • mods-via-twig.md - this document
  • Digital-Grinnell-MODS-Master-Rev16beta.twig - an export of my latest DG MASTER Twig import template for MODS
  • test/ - a directory of miscellaneous files used for testing
  • social-justice/ - a directory containting files exported from DG's "Social Justice" collection
@McFateM
McFateM / rsync.md
Created April 17, 2020 20:34
MODS-via-Twig File Movement

rsync - Fetch All mods.csv

With the Grinnell College //STORAGE server mounted to iMac MA8660 you can run the following rsync command to fetch all of the latest mods.csv files and directories after they have been created using the Map-MODS-to-MASTER Python 3 script on MA8660...

╭─mark@Marks-Mac-Mini ~/GitHub/lando-d8/sites/default/files/collections ‹8.6.x*›
╰─$ rsync -aruvi --exclude '*.xml' --exclude '*.log' --exclude '*.remainder' --progress markmcfate@132.161.216.145:/Volumes/LIBRARY/ALLSTAFF/DG-Metadata-Review-2020-r1/. ~/GitHub/lando-d8/sites/default/files/collections/.

The command alone is: