Skip to content

Instantly share code, notes, and snippets.

@dltj
dltj / bip.conf
Created June 11, 2013 23:58
Config file for the bip IRC bouncer connecting to irc://irc.freenode.net/code4lib and other channels.
# bip default config file.
# Thou shoult change thy password
# Listening IP address. This is the IP address bip will listen for incoming
# client connections.
ip = "10.112.45.239";
# To connect a client to bip, try the port below, and
# be sure to set the password to the value
# specified in the network you want to connect to.
@dltj
dltj / DRS metadata form.xml
Created May 21, 2013 01:46
Islandora form_builder definition
<?xml version="1.0"?>
<definition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2">
<properties>
<root_name>mods</root_name>
<schema_uri>http://www.loc.gov/standards/mods/v3/mods-3-4.xsd</schema_uri>
<namespaces default="http://www.loc.gov/mods/v3">
<namespace prefix="drs">http://lyrasis.org</namespace>
<namespace prefix="dc">http:://purl.org/elements/1.1/</namespace>
<namespace prefix="dcterms">http://purl.org/dc/terms/</namespace>
<namespace prefix="dwc">http://rs.tdwg.org/dwc/terms/</namespace>
O:24:"IslandoraScanBatchObject":12:{s:12:"�*�base_name";s:4:"MODS";s:14:"�*�object_info";a:2:{s:3:"jp2";O:8:"stdClass":4:{s:3:"uri";s:73:"/root/path/to/image_batch/MODS.jp2";s:8:"filename";s:8:"MODS.jp2";s:4:"name";s:4:"MODS";s:3:"ext";s:3:"jp2";}s:3:"xml";O:8:"stdClass":4:{s:3:"uri";s:73:"/root/path/to/MODS.xml";s:8:"filename";s:8:"MODS.xml";s:4:"name";s:4:"MODS";s:3:"ext";s:3:"xml";}}s:26:"�*�preprocessor_parameters";a:6:{s:4:"type";s:9:"directory";s:6:"target";s:64:"/root/path/to/image_batch";s:6:"parent";s:14:"islandora:root";s:23:"parent_relationship_uri";s:49:"info:fedora/fedora-system:def/relations-external#";s:24:"parent_relationship_pred";s:20:"isMemberOfCollection";s:14:"content_models";a:0:{}}s:27:"�*�newFedoraDatastreamClass";s:28:"IslandoraNewFedoraDatastream";s:24:"�*�fedoraDatastreamClass";s:25:"IslandoraFedoraDatastream";s:21:"�*�fedoraRelsExtClass";s:22:"IslandoraFedoraRelsExt";s:14:"�*�datastreams";a:1:{s:8:"RELS-EXT";O:28:"IslandoraNewFedoraDatastream":8:{s:21:"�*�fedoraRelsIntClass";s:22:"
@dltj
dltj / gist:1406383
Created November 29, 2011 20:36
XSLT Transformation
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:variable name="newline"><xsl:text>
</xsl:text></xsl:variable>
<xsl:variable name="tab"><xsl:text>&#x09;</xsl:text></xsl:variable>
<xsl:template match="/">
sonata plugins # eselect python list
Available Python interpreters:
[1] python2.4
[2] python2.5
[3] python2.6
[4] python3.1 *
sonata plugins # eselect python set 3
sonata plugins # /usr/sbin/glcu
Traceback (most recent call last):