Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark H. Wood mwoodiupui

View GitHub Profile
View clamd.conf
##
## Example config file for the Clam AV daemon
## Please read the clamd.conf(5) manual before editing this file.
##
# Comment or remove the line below.
# Example
# Uncomment this option to enable logging.
@mwoodiupui
mwoodiupui / RecycleTest.java
Created Jan 23, 2015
Quickie to test DatabaseMetaData.getTables with Oracle (for recycle bin behavior)
View RecycleTest.java
import java.sql.*;
class Recycletest
{
private static final String URL
= "jdbc:oracle:thin:@changeit:1521/XE";
private static final String USER = "changeit";
private static final String PWD = "changeit";
public static void main(String[] argv)
@mwoodiupui
mwoodiupui / dsctx
Last active Aug 29, 2015
Shell script to create customized Tomcat Context descriptors for a DSpace instance
View dsctx
#! /bin/sh
# Copyright 2014 Indiana University
# Mark H. Wood, IUPUI University Library
### Configure me!
DSHOME="${HOME}/dspaces"
DBMS='postgresql'
DB_HOST=localhost
@mwoodiupui
mwoodiupui / dsenv
Last active Aug 29, 2015
Shell script to create a customized build.properties for DSpace
View dsenv
#! /bin/sh
# Copyright 2014 Indiana University
# Mark H. Wood, IUPUI University Library
### Configure me!
DS_HOST=${DSENV_HOST:-`hostname -f`}
DS_PORT=${DSENV_PORT:-8080}
DS_HOME="${HOME}/dspaces" # MAGIC
DS_ADMIN=mwood@iupui.edu # MAGIC
@mwoodiupui
mwoodiupui / filldspace.sh
Created Nov 6, 2013
Untested script to load a set of AIPs from a configured directory, if they are there.
View filldspace.sh
#! /bin/sh
WHO="ferd@berfel"
CONTENT="~/content"
DSPACE_HOME="~/dspace"
SITE=`echo ${CONTENT}/SITE@* | cut -f1 -d' '`
if [ -n "${SITE}" ]
then
echo ${DSPACE_HOME}/bin/dspace packager \