Skip to content

Instantly share code, notes, and snippets.

View adam-vessey's full-sized avatar

Adam adam-vessey

View GitHub Profile
@adam-vessey
adam-vessey / README.md
Last active October 8, 2019 19:18
MacOS Time Machine helper
@adam-vessey
adam-vessey / gist:495cab722de67d39c15a
Created June 25, 2015 14:29
Build filter against 3.8.1
$ mvn package -Dfedora.version=3.8.1
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ca.islandora:fcrepo-drupalauthfilter:jar:3.8.1
[WARNING] 'version' contains an expression but should be a constant. @ ca.islandora:fcrepo-drupalauthfilter:${fedora.version}, /home/whip/repos/islandora_drupal_filter/pom.xml, line 5, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
@adam-vessey
adam-vessey / collection.php
Created December 5, 2014 22:41
Example of acquiring the namepace from a collection object in Islandora
<?php
// Load the collection object.
$object = islandora_object_load('the:pid');
// Instantiate a CollectionPolicy object with our policy.
$collection_policy = new CollectionPolicy($object['COLLECTION_POLICY']->content);
// Grab the models.
$models = $collection_policy->getContentModels();
@adam-vessey
adam-vessey / prompt
Created May 14, 2013 15:11
Compiling the Islandora GSearch extension... Surprisingly easy.
avessey@vassardev:~/temp$ git clone git://github.com/Islandora/islandora_gsearch_extensions.git
Cloning into 'islandora_gsearch_extensions'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 0), reused 6 (delta 0)
Receiving objects: 100% (6/6), done.
avessey@vassardev:~/temp$ cd islandora_gsearch_extensions/
avessey@vassardev:~/temp/islandora_gsearch_extensions$ javac -cp "/usr/local/fedora/tomcat/webapps/fedoragsearch/WEB-INF/lib/*:/usr/local/fedora/tomcat/webapps/fedoragsearch/WEB-INF/classes" ca/upei/roblib/DataStreamForXSLT.java
Note: ca/upei/roblib/DataStreamForXSLT.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.