Skip to content

Instantly share code, notes, and snippets.

View ghukill's full-sized avatar

Graham Hukill ghukill

  • MIT Libraries
View GitHub Profile
print "This might be a fun way to share code..."
@ghukill
ghukill / gist:8a95060c478e05c7e0789960e1253d50
Created August 19, 2016 14:55
"Content is not allowed in trailing section" REPOX error
2016-08-19 09:00:54,357 ERROR Thread-322 pt.utl.ist.oai.OaiDataSource.ingestRecords(OaiDataSource.java:346) - Error ingesting : Error on line 37224 of document : Content is not allowed in trailing section. Nested exception: Content is not allowed in trailing section.
org.dom4j.DocumentException: Error on line 37224 of document : Content is not allowed in trailing section. Nested exception: Content is not allowed in trailing section.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at pt.utl.ist.oai.ResponseTransformer.getIteratorSplitResponse(ResponseTransformer.java:91)
at pt.utl.ist.oai.ResponseTransformer.splitResponseToRecords(ResponseTransformer.java:138)
at pt.utl.ist.oai.OaiDataSource.ingestRecords(OaiDataSource.java:299)
at pt.utl.ist.dataProvider.DataSource.startIngest(DataSource.java:476)
at pt.utl.ist.task.IngestDataSource.run(IngestDataSource.java:81)
at java.lang.Thread.run(Thread.java:745)
@ghukill
ghukill / gist:79914b5da43869119c2db22b4cb5c883
Created August 28, 2016 05:33
Chris McGregro's Brotherhood of Breath - Devashe's Dream
One of the absolute key documents of British jazz (or indeed post-Ornette jazz of any nationality), this is the 1970 Joe Boyd-produced debut album by the big band formed by the exiled South African pianist and composer Chris McGregor. Basically an extension of his working band the Blue Notes (from whose ranks appear trumpeter Mongezi Feza, altoist Dudu Pukwana, tenorman Ronnie Beer and drummer Louis Moholo, with fellow SA expatriate Harry Miller on bass) utilising the finest cutting-edge British players of the time. The sax section is completed by the "SOS" team, i.e. John Surman, Mike Osborne and Alan Skidmore; from the Keith Tippett Group come cornettist Marc Charig and trombonist Nick Evans; and the line-up is completed by trombonist Malcolm Griffiths (from the Mike Westbrook band, as were Miller, Surman and Osborne) and the great West Indian trumpeter Harry Beckett. The opening track, "Mra," is five minutes of insistent riffing and rhythm (used in fact for many years as the theme tune of BBC Radio 3's "Ja
Perhaps there is a certain permanence in performance?
@ghukill
ghukill / IPR.md
Last active September 26, 2016 13:32
@ghukill
ghukill / bump_file_numbers.py
Created October 27, 2016 18:16
Handy little script for bumping filenames from our book scanner
import os
files = os.listdir('.')
files.sort(reverse=True)
for f in files:
fnum = f.split('.')[0].lstrip("0")
if fnum == '':
fnum = "0"
newfnum = str(int(fnum) + 1)
newf = "%s.%s" % ( newfnum.zfill(3),f.split(".")[-1] )
print "converting %s --> %s" % (f,newf)
<html>
<body style="text-align:center;">
<h2>Wayne State University, Digital Collections</h2>
<h3>Lincoln Letter</h3>
<img src='https://digital.library.wayne.edu/loris/fedora:wayne:LincolnLettersFHC205771%7C_205771-01_JP2/full/full/0/default.jpg' width=1024/>
</body>
</html>
<mets:amdSec ID="amdSec_1">
<mets:techMD ID="techMD_1">
<mets:mdWrap MDTYPE="PREMIS:OBJECT">
<mets:xmlData>
<premis:object xmlns:premis="info:lc/xmlns/premis-v2" xsi:type="premis:file" xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/v2/premis-v2-2.xsd" version="2.2">
<premis:objectIdentifier>
<premis:objectIdentifierType>UUID</premis:objectIdentifierType>
<premis:objectIdentifierValue>62bc0ab0-8f92-4450-9265-6f71918bc08b</premis:objectIdentifierValue>
</premis:objectIdentifier>
<premis:objectCharacteristics>