Skip to content

Instantly share code, notes, and snippets.

View br2490's full-sized avatar

Benjamin Rosner br2490

View GitHub Profile
benro@benjamin-desktop /d/GITHUB
$ git clone --single-branch --branch sprint-002 git@github.com:br2490/CLAW.git CLAW-LF
Cloning into 'CLAW-LF'...
Warning: Permanently added 'github.com,192.30.252.122' (RSA) to the list of known hosts.
remote: Counting objects: 9574, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 9574 (delta 8), reused 1 (delta 0), pack-reused 9548
Receiving objects: 100% (9574/9574), 14.91 MiB | 4.98 MiB/s, done.
Resolving deltas: 100% (5727/5727), done.
Checking connectivity... done.
@br2490
br2490 / Object1.ttl
Last active July 26, 2016 15:16
CLAW object set for testing, ttls.
@prefix pcdm: <http://pcdm.org/models#> .
@prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.2/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<> a pcdm:Object ;
dc:title "Object 1" ;
dc:author "Batch Ingest" ;
nfo:uuid "17f21a95-9411-4550-88da-4d48546708c1" .

Script

feature:repo-add mvn:org.fcrepo.camel/toolbox-features/4.5.2/xml/features
feature:install fcrepo-indexing-triplestore
feature:install fcrepo-fixity
feature:install fcrepo-serialization
feature:install fcrepo-service-activemq

Error

https://gist.github.com/br2490/310a005b02e70cc9a4b6e3190cf55e50#file-object1-ttl

benjamin@IMATS-BROSNER:/tmp/CLAW-issue-258/install$ curl -i -XPOST -H"Content-type: text/turtle" --data-binary "@Object1.ttl" http://localhost:8282/islandora/resource

HTTP/1.1 201 Created Date: Wed, 25 May 2016 13:30:44 GMT Server: Apache/2.4.7 (Ubuntu) ETag: "480c1ebf47bbe7482cff48dcd2d30f76b32cba09" Cache-Control: private, must-revalidate Last-Modified: Wed, 25 May 2016 13:30:45 GMT

benjamin@IMATS-BROSNER:~/ISLANDORA_7x$ cd islandora_vagrant/
benjamin@IMATS-BROSNER:~/ISLANDORA_7x/islandora_vagrant$ ls
build CHANGELOG.md configs CONTRIBUTING.md LICENSE README.md scripts Vagrantfile
benjamin@IMATS-BROSNER:~/ISLANDORA_7x/islandora_vagrant$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'islandora/islandora-base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'islandora/islandora-base'
default: URL: https://atlas.hashicorp.com/islandora/islandora-base
@br2490
br2490 / Copy attempt 1.png
Last active July 15, 2016 15:56
Collection Copy Edit, version 1
Copy attempt 1.png
@br2490
br2490 / risearch.csv
Created July 28, 2016 17:31
Manuscript Module Import Query
pid title
info:fedora/bcrw:1001 Memo from Catharine Stimpson to Baxter, Elliott, Gould, Graham, and Hertz, regarding priorities for the Women's Center, June 30, 1971
info:fedora/bcrw:1004 Letter from Bernice Sandler to Martha Peterson, October 18, 1971
info:fedora/bcrw:1006 Letter from Martha Peterson to Bernice Sandler, October 25, 1971
info:fedora/bcrw:1008 Letter from Martha Peterson to Catharine Stimpson, November 30, 1971
info:fedora/bcrw:101 Letter from Mary Scotti to Elly Elliott, October 18, 1971
info:fedora/bcrw:1011 Memo from Jane Gould to Catharine Stimpson, regarding two suggested projects for the Women's Center, December 6, 1971
info:fedora/bcrw:1013 Letter from Catharine Stimpson to Martha Peterson, December 7, 1971
info:fedora/bcrw:1016 Memo from Catharine Stimpson to Martha Peterson, regarding library exhibits, December 15, 1971
info:fedora/bcrw:1018 Memo from Catharine Stimpson to the Women's Center's Executive Committee, regarding "January Fun," December 28, 1971
@br2490
br2490 / RSUB
Created August 11, 2016 12:56
Download RMATE, rename, chmod and all that jazz
#!/bin/bash
echo "Configuring RSUB."
sudo wget -vO /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod a+x /usr/local/bin/rsub
import requests
import time
fgs_url = 'http://islandora:8080/fedoragsearch/rest'
user = 'fedoraAdmin'
password = 'XXXXX'
fgs_session = requests.Session()
fgs_session.auth = (user, password)
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);