Skip to content

Instantly share code, notes, and snippets.

@little9
little9 / manifest.json
Created October 30, 2019 17:50
manifest.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@type": "sc:Manifest",
"@id": "http://example.com/manifest.json"
}
{
"schemaVersion": "0.3",
"description": "Creates AMI snapshot of a given instance id",
"parameters": {
"InstanceIamRole": {
"type": "String",
"description": "(Required) The name of the role that enables Systems Manager (SSM) to manage the instance.",
"default": "aws-system-manager"
},
"AutomationAssumeRole": {
CSV Header title files representative_media thumbnail rendering depositor date_uploaded date_modified label relative_path import_url resource_type creator contributor description keyword license rights_statement publisher date_created subject language identifier based_near related_url bibliographic_citation source visibility
Predicate DC.title DC.dateSubmitted
CSV Header title files representative_media thumbnail rendering depositor date_uploaded date_modified label relative_path import_url resource_type creator contributor description keyword license rights_statement publisher date_created subject language identifier based_near related_url bibliographic_citation source visibility
Predicate DC.title DC.dateSubmitted DC.type DC11.creator DC11.contributor DC.description DC.rights EDM.rights DC11.publisher DC.created DC11.subject DC11.language DC.indentifier FOAF.based_near RDFS.seeAlso DC.source
Cardinality multiple multiple singular singular singular singular singular multiple multiple multiple multiple multiple singular multiple multiple multiple multiple multiple multiple multiple multiple
Data Type string string string string string string string uri uri string date or string string string string uri string or uri string
Optionality required required required required required required
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@type": "sc:Manifest",
"@id": "sample.pdf",
"label": "Multi-page PDF",
"description": "banana apple mango pineapple",
"sequences": [
{
"@type": "sc:Sequence",
"@id": "sample.pdf/sequence/normal",

Keybase proof

I hereby claim:

  • I am little9 on github.
  • I am jamielittle (https://keybase.io/jamielittle) on keybase.
  • I have a public key ASBtS9NKKPBQEg7jPHX9UczNwx4iXIN1IojUrKD6qP005wo

To claim this, I am signing this object:

@little9
little9 / hyrax_autocomplete.md
Last active March 15, 2017 01:02
Hyrax Autocomplete

Hyrax Autocomplete

You've got a Work in Hyrax and it has a Creator field. Wouldn't it be nice to have autocomplete on that form with a controlled vocabulary? Hyrax has this functionality, but you need to set some things up first.

The most basic way a field is associated with a particular autocomplete data source is with a data attribute on the element. The data-autocomplete-url attribute stores a path to the data source. To add one to an existing field create a partial for the field in app/views/records/edit_fields/.

In the partial, specify the data source:

https://na03.alma.exlibrisgroup.com/view/oai/01UOML_INST/request?verb=ListRecords&set=udvd&metadataPrefix=marc21&from=2016-07-01
@little9
little9 / install_mysql.sh
Last active July 18, 2016 17:06 — forked from rrosiek/install_mysql.sh
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
# Variables
DBHOST=localhost
DBNAME=sp
DBUSER=sp
DBPASSWD=grokgro3#3ogk3og3
echo -e "\n--- Mkay, installing now... ---\n"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Solr managed schema - automatically generated - DO NOT EDIT -->
<schema name="example" version="1.6">
<uniqueKey>id</uniqueKey>
<fieldType name="_bbox_coord" class="solr.TrieDoubleField" stored="false" useDocValuesAsStored="false" docValues="true" precisionStep="8"/>
<fieldType name="alphaOnlySort" class="solr.TextField" omitNorms="true" sortMissingLast="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.TrimFilterFactory"/>