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 / Fedora-init-script-for-RHEL
Last active December 20, 2015 06:28
as the header says, I borrowed this from the DSpace demo server and then munged it with some RHEL-isms from the mysqld init script.
cat /etc/init.d/fedora
#!/bin/bash
#
# fedora: a small shell script to start/stop the Fedora Tomcat
#
# Patterned after the DSpace start script found on demo.dspace.org, and
# rewritten in the RHEL style, borrowed from the mysqld start script.
#
# If you want to have Fedora's Tomcat running on port 80 please modify the
# server.xml file:
@hardyoyo
hardyoyo / .bashrc_snippet_for_multiple_JVMs
Created July 31, 2013 17:04
.bashrc additions to enable working with multiple JVMs
# support using multiple JVMs
alias java_ls='find /etc/alternatives | grep java_sdk | grep -v exports'
function java_use() {
export JAVA_HOME=$1
export PATH=$JAVA_HOME/bin:$PATH
java -version
}
tdonohue>
next ticket DS-893
[2:31pm] <kompewter>
[ https://jira.duraspace.org/browse/DS-893 ] - [#DS-893] suggestion for a re-implementation of Bundles in the DSpace data model - DuraSpace JIRA
[2:32pm] <tdonohue>
this looks like a "brainstorming" ticket...which likely goes to "needs more info" bucket.
[2:32pm] <helix84>
ha, i've been saying what the ticket says all along
[2:32pm] <tdonohue>
I know this is something that has come up relatively frequently through the years (including in the recent "DSpace Vision" discussions), but we've never settled on a "way forward" yet
here's the error I'm seeing when running ant clean_database, after building DSpace:master with Maven:
[java] Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
[java] at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
[java] at org.springframework.core.env.MutablePropertySources.addLast(MutablePropertySources.java:103)
[java] at org.springframework.core.env.StandardEnvironment.customizePropertySources(StandardEnvironment.java:78)
[java] at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:117)
[java] at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:54)
[java] at org.springframework.context.support.AbstractApplicationContext.createEnvironment(AbstractApplicationContext.java:427)
[java] at org.springframework.context.supp
@hardyoyo
hardyoyo / ds-1452-error-mesages-from-dspace.log
Created September 11, 2013 22:23
ds-1452, more detailed error message when using the built-in WebDav client in OSX:
2013-09-11 22:21:17,325 ERROR org.dspace.app.dav.DAVServlet @ org.dspace.app.dav.DAVStatusException: Unrecognized DSpace resource URI
org.dspace.app.dav.DAVStatusException: Unrecognized DSpace resource URI
at org.dspace.app.dav.DAVResource.findResource(DAVResource.java:408)
at org.dspace.app.dav.DAVServlet.serviceInternal(DAVServlet.java:520)
at org.dspace.app.dav.DAVServlet.service(DAVServlet.java:443)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
@hardyoyo
hardyoyo / support_multiple_JVMs_in_linux
Created October 17, 2013 17:39
a snippet to add to your .bash_rc file in your home folder, if you use Linux, to enable using multiple JVMs
# add this to your .bash_rc file in your home folder
# support using multiple JVMs
alias java_ls='find /etc/alternatives | grep java_sdk | grep -v exports'
function java_use() {
export JAVA_HOME=$1
export PATH=$JAVA_HOME/bin:$PATH
java -version
}
@hardyoyo
hardyoyo / mvn_possible_dependency_updates.txt
Last active December 27, 2015 00:39
results of running mvn versions:display-dependency-updates in my DSpace clone, from my fork of DSpace.
[vagrant@dspace dspace-src (master)]$ mvn versions:display-dependency-updates
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.dspace:dspace-rest:war:4.0-SNAPSHOT
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[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]
@hardyoyo
hardyoyo / local.yaml
Last active December 27, 2015 12:09
my Vagrant-DSpace local.yaml file (feel free to borrow, just drop this in your config folder, but be sure to change the value for git_repo first, unless of course you're me. Then, carry on.
---
git_repo : 'git@github.com:hardyoyo/DSpace.git'
git_branch : 'master'
mvn_params : '-Denv=vagrant'
ant_installer_dir : '/home/vagrant/dspace-src/dspace/target/dspace-4.0-rc2-SNAPSHOT-build'
@hardyoyo
hardyoyo / local-bootstrap.sh
Created November 11, 2013 19:29
my current local-bootstrap.sh file
#!/bin/bash
# local-bootstrap.sh is a hacky little solution to customizing your own DSpace clone from github. You can use it to do such things as set an upstream remote, configure fetching of pull requests from upstream, and much more
# it is also a handy stop-gap measure for providing needed functionality for Vagrant DSpace (such as AIP auto-loading) without having to do a lot of puppet scripting. This works.
# WORD of WARNING: don't forget this script will run as root, so be careful about files you create. Git config lines will need to be run either as the vagrant user.
WHO="pottingerhj@missouri.edu"
@hardyoyo
hardyoyo / vhost.conf
Last active December 28, 2015 05:39
Example Apache vhost .conf file for setting up the reverse proxy from port 80 to port 8009, complete with Shibboleth, sitemaps, and all kinds of other junk
<VirtualHost dspace.ourinstitution.edu:80>
<Directory /var/www/vhosts/>
Options +ExecCGI +SymLinksIfOwnerMatch +MultiViews -Indexes +Includes
AllowOverride AuthConfig FileInfo Limit Options
order deny,allow
deny from none
allow from all
</Directory>
<Directory /var/www/vhosts/dspace/dspace_status>