Skip to content

Instantly share code, notes, and snippets.

View hardyoyo's full-sized avatar
🕺
husslin'

Hardy Pottinger hardyoyo

🕺
husslin'
View GitHub Profile
@hardyoyo
hardyoyo / maybe.xml
Created December 6, 2013 19:43
DS-1759 check my work?
<bean id="default_home_page" class="org.dspace.discovery.configuration.DiscoveryConfiguration" scope="prototype">
<!--The configuration for the recent submissions-->
<property name="recentSubmissionConfiguration">
<bean class="org.dspace.discovery.configuration.DiscoveryRecentSubmissionsConfiguration">
<property name="metadataSortField" value="dc.date.accessioned" />
<property name="type" value="date"/>
<property name="max" value="5"/>
<!-- If enabled the collection home page will not display metadata but show a pageable list of recent submissions -->
<property name="useAsHomePage" value="false"/>
</bean>
#!/bin/bash
#snapshot-trac-environments: produce a hotcopy snapshot of all trac environments in /svr/trac and store them with a name. If the argument is any other string than "today" then it is used verbatim
# otherwise, if the argument is "today" then we first find the day name (e.g. Thursday) and use that instead.
if [ ! $# == 1 ]; then
echo "Usage: $0 [name for snapshot or 'today']"
exit
fi
@hardyoyo
hardyoyo / not-so-noisy-now-ds-1628.txt
Created January 29, 2014 21:28
testing-DS-1628-not-so-noisy-now-eh?
[vagrant@dspace ~]$ dspace/bin/dspace version
DSpace version: 5.0-SNAPSHOT
SCM revision: 2afe11c53eb45b86ecac6f3e44720967f197a829
SCM branch: UNKNOWN
OS: Linux(amd64) version 3.2.0-23-generic
Applications:
XMLUI at http://localhost:8080/xmlui
JSPUI at http://localhost:8080/xmlui
XMLUI at http://localhost:8080/xmlui
JSPUI at http://localhost:8080/xmlui
@hardyoyo
hardyoyo / .inputrc
Created February 19, 2014 15:21
example ~/.inputrc to support up and down arrow searching of command history in BASH
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
@hardyoyo
hardyoyo / Vagrantfile
Created March 14, 2014 18:58
non-working Vagarantfile for Vagrant-MOspace
# -*- mode: ruby -*-
# vi: set ft=ruby :
####################################
# Vagrantfile for DSpace Development
#
# WARNING: THIS IS A WORK IN PROGRESS. IT DOES NOT YET FULLY INSTALL DSPACE VIA VAGRANT!
#
# DO NOT USE IN PRODUCTION. THIS IS FOR DEVELOPMENT/TESTING PURPOSES ONLY.
#
@hardyoyo
hardyoyo / tomcat7
Last active August 29, 2015 13:57
init script for tomcat7 on RHEL6 (runs as the user dspace, if you're not using dspace, change to suit)
#!/bin/bash
# Tomcat7: Start/Stop Tomcat 7
# chkconfig: - 90 10
# script borrowed from http://seriousbirder.com/blogs/how-to-install-tomcat-7-on-rhel-6/
# with extra oomph from http://blog.botha.us/sarel/?p=101
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
@hardyoyo
hardyoyo / tomcat6
Last active August 29, 2015 14:01
tomcat6 start script for a binary download of Apache Tomcat 6, on RHEL/CentOS (runs as the user dspace, if you're not using dspace, change to suit)
#!/bin/bash
# Tomcat6: Start/Stop Tomcat 6
# chkconfig: - 90 10
# script borrowed from http://seriousbirder.com/blogs/how-to-install-tomcat-7-on-rhel-6/
# with extra oomph from http://blog.botha.us/sarel/?p=101
### BEGIN INIT INFO
# Provides: tomcat6
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dspace-api ---
[INFO] Compiling 611 source files to /home/pottingerhj/workspace/my_dspace_master/dspace-api/target/classes
[WARNING] /home/pottingerhj/workspace/my_dspace_master/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java:[66,24] [deprecation] DSIndexer in org.dspace.search has been deprecated
[WARNING] /home/pottingerhj/workspace/my_dspace_master/dspace-api/src/main/java/org/dspace/handle/UpdateHandlePrefix.java:[16,24] [deprecation] DSIndexer in org.dspace.search has been deprecated
[WARNING] /home/pottingerhj/workspace/my_dspace_master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java:[44,24] [deprecation] DSIndexer in org.dspace.search has been deprecated
[WARNING] /home/pottingerhj/workspace/my_dspace_master/dspace-api/src/main/java/org/dspace/identifier/doi/DOIConsumer.java:[22,24] [deprecation] SearchConsumer in org.dspace.search has been deprecated
[WARNING] /home/pottingerhj/workspace/m
@hardyoyo
hardyoyo / pr-575-test-failure.txt
Created July 23, 2014 13:50
pr-575 test failure
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ dspace-api ---
[INFO] Surefire report directory: /Users/pottingerhj/Documents/workspace/dspace_master/dspace-api/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.dspace.app.bulkedit.DSpaceCSVTest
2014-07-23 07:11:47,060 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): /Users/pottingerhj/Documents/workspace/dspace_master/dspace-api/target/testing/dspace/config/dspace.cfg
2014-07-23 07:11:47,077 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration. If unintended, check your dspace.cfg for (log.init.config)
2014-07-23 07:11:47,396 INFO org.springframework.context.support.ClassPathXmlApplicationContext @ Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@4c5fa12d: startup date [Wed Jul 23 13:11:47 IST 2014]; root of c
@hardyoyo
hardyoyo / ds-2086-stack-trace
Created August 4, 2014 18:43
DS-2086 Stack Trace
java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (UM_LSO_DEV1_2.SYS_C0091053) violated - child record found
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010)