Skip to content

Instantly share code, notes, and snippets.

View br2490's full-sized avatar

Benjamin Rosner br2490

View GitHub Profile
welcometext="<div style="margin: auto; text-align:center;"><img alt='Embedded Image' src='' /></div>
chromium-browser --kiosk [url] --no-first-run --touch-events=enabled --fast --fast-start --disable-popup-blocking --disable-infobars --disable-session-crashed-bubble --disable-tab-switcher --disable-translate --enable-low-res-tiling
Building mods from CSV MD file for: BC15-12_diary19031908 [ok]
Creating diary (book) object for: BC15-12_diary19031908 [ok]
[ok]
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/mods/v3/mods-3-5.xsd">
<identifier type="local">BC15-12_diary19031908</identifier>
<titleInfo>
@br2490
br2490 / Dorothy Oak Scrapbook - BC15-20_0.xml
Last active October 11, 2017 23:59
RELS-EXT relationships in BC15.20
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:islandora="http://islandora.ca/ontology/relsext#">
<rdf:Description rdf:about="info:fedora/BC15-20:0">
<fedora-model:hasModel rdf:resource="info:fedora/islandora:collectionCModel"></fedora-model:hasModel>
<fedora:isMemberOf rdf:resource="info:fedora/BC15:0"></fedora:isMemberOf>
<islandora:hasLanguage rdf:resource="info:fedora/eng"></islandora:hasLanguage>
</rdf:Description>
</rdf:RDF>
@br2490
br2490 / upd_compound_inclusion_relationship_to_book.php
Created October 17, 2017 12:59
Update Islandora Compound Objects Relationships
// Requires devel (doesn't need to be enabled).
// Head to https://<host.domain.tld>/devel/php to EXECUTE THIS LIVE.
// Just want to see the data this will spit out? Comment out lines
// starting with "$res" and "$res2" which are the only calls making actual modification.
$pid = 'BC15-14:852'; // This is your compound object's PID.
$compound = islandora_compound_object_get_parts($pid);
if (empty($compound)) {
// Not Compound.
"Women college students", 101,
"Education", 88,
"Commencement ceremonies", 85,
"College buildings", 81,
"Student activites", 80,
"Student activities", 23,
"Theater", 22,
"Students' songs", 9,
"Suffragists", 7,
@br2490
br2490 / docker-compose.yml
Created January 9, 2018 02:51
This is a networking issue - docker-compose "on build" doesn't respect the network defined and build on the default bridge. So, first you'll see networks below where I define just a default bridge called "isle-stacknetwork" (it will pickup ISLE from the foldername) and that was either unsuccessful or I didn't pay attention to the error apache th…
version: '2'
#labels:
# org.label-schema.version: "ISLE Alpha 2.0"
# org.label-schema.description: "ISLE Base Image with sample site isle.localdomain docker-compose.yml for non-production usage."
# org.label-schema.license: "Apache-2.0"
# org.label-schema.vcs-url: "[email protected]:Islandora-Collaboration-Group/ISLE.git"
# org.label-schema.vendor: "Islandora Collaboration Group (ICG) - [email protected]"
# org.label-schema.schema-version: "1.0"
services:
@br2490
br2490 / docker-compose.yml
Last active February 13, 2018 16:53
Barnard College ISLE docker-compose.yml - alpha version, in dev - Example migration of existing islandora stack -> docker stack environment.
version: '2'
# ISLE Alpha 2, for Development and Testing.
# Usernames and passwords to login to tomcat on services fedora and solr is: admin,ild_tc_adm_2018 - this is specified in the default tomcat-users.xml and can be replaced if you desire (SHOULD BE IN PROD)
services:
# PHPMyAdmin is a MySQL administration GUI. It's helpful for me!
# Connect to this container @ http://0.0.0.0:8081 - the sql host is "mysql" and user is "root" with password set in the mysql service ENV.
myadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
#!/bin/bash
pandoc ./index.md ./about.md ./Glossary.md ./System_Requirements.md ./00Host_Server/Host_Server_Setup.md ./00Host_Server/Host_Server_Ubuntu.md ./00Host_Server/Host_Server_CentOS.md ./00Host_Server/Host_Server_Setup_Ansible.md ./01_Installation_Migration/01_0_Installation.md ./01_Installation_Migration/01_1_testsite_guide.md ./01_Installation_Migration/01_2_testsite_user_story.md ./01_Installation_Migration/01_3_new_site_guide.md ./01_Installation_Migration/01_4_newsite_user_story.md ./01_Installation_Migration/Migration_Guide.md ./01_Installation_Migration/Migration_User_Story.md ./01_Installation_Migration/migration_export_checklist.md ./01_Installation_Migration/migration_merge_checklist.md ./Isle_Containers_Description.md ./1_system_process_overview/summary.md ./1_system_process_overview/mvpspecs.md ./1_system_process_overview/1_3_system_overview/systemoverview.md ./1_system_process_overview/1_3_system_overview/supported-specification-matrix-table.md ./1_system_process_overview/1_3_system_overv
#!/bin/bash
## Place this script in the directory containing mkdocs.yml.
## It assumes the docs are in the docs directory, greps all the files, and concats to one large file.
# ## Check for and install Pandoc
# if ! which pandoc; then
# echo 'Installing pandoc.'
# sleep 2s;
# sudo apt-get update -y;
# sudo apt-get install pandoc -y;