Skip to content

Instantly share code, notes, and snippets.

View cbeer's full-sized avatar

Chris Beer cbeer

View GitHub Profile
@cbeer
cbeer / gist:11264457
Created April 24, 2014 18:24
fcrepo4 transactions
after do
resp = FedoraLens.connection.http.post "./fcr:tx"
loc = resp.headers['Location']
cl = Faraday.new url: loc
cl.delete "./#{@library.pid}"
cl.delete "./#{@book.pid}"
cl.delete "./#{@author.pid}"
cl.delete "./#{@publisher.pid}"
cl.delete "./#{@library2.pid}" if @library2
@cbeer
cbeer / example.sh
Last active December 19, 2015 00:39
fcrepo4 clustering and SGE
# launch a 4 node cluster
qsub -t 1-4 -cwd fcrepo-test.sh
# run a 1 node stress test against the cluster launched in job id 1
qsub -v CLUSTER_JOB_ID=1 -cwd fcrepo-stress-test.sh
@cbeer
cbeer / infinispan_configuration_chained_loaders.xml
Created March 7, 2013 21:33
Multiple infinispan cache stores example
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">
<global>
<!-- Defines the global settings shared by all caches -->
<transport>
<properties>
<property name="configurationFile" value="${fcrepo.ispn.jgroups.configuration:config/jgroups-infinispan.xml}"/>
</properties>
@cbeer
cbeer / Screen Shot 2013-02-14 at 17.44.26 .png
Last active December 13, 2015 18:48
Fedora4Lib Administrative Webapp Interface by @jcoyne, developed for the Fedora4lib hack fest.
Screen Shot 2013-02-14 at 17.44.26 .png
@cbeer
cbeer / README.md
Created February 11, 2013 22:15
Term Colocation d3 Cluster Graph
  • Put source text in src.txt
  • Run munge.rb
  • Copy content into index.html
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modeshapeRepofactory': Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFacto
@cbeer
cbeer / Rplot-fedora-10threads.png
Last active December 11, 2015 20:39
Fedora benchamrks
Rplot-fedora-10threads.png
@cbeer
cbeer / akubra-llstore.xml
Created December 21, 2012 21:25
Akubra glacier spring configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean name="org.fcrepo.server.storage.lowlevel.ILowlevelStorage"
class="org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorageModule">
<constructor-arg index="0">
<map />
</constructor-arg>
<constructor-arg index="1" ref="org.fcrepo.server.Server" />
@cbeer
cbeer / 2013 talks topics
Created November 14, 2012 03:32
accepted talks topics
0 0.52687 library data university dot system presentation ll code talk development resources application web digital
1 0.02734 experience user blackboard primo functionality hosted northwestern examples services campus student cms collaborative resource
2 0.02849 web service libraries design make accessible user jquery staff users accessibility ryerson database books
3 0.04491 google ncsu libraries tracking analytics interface event carolina north usage html patron catalog vendor
4 0.02449 marc format marcr datastore redis records discovery colorado designation bibliographic structure college source scale
5 0.04151 source open software quality practices small profit development community role bess agile develop mediashelf
6 0.01314 drupal postgresql engine php twig symfony splurge world core recommendation portal ontario laurentian high
7 0.0193 hydra content models public boston dpla bpl hubs service org digital modeling advanced potential
8 0.02437 image images northwestern api stanford iiif framewo
@cbeer
cbeer / ingest-em.rb
Created March 21, 2012 14:28
Rubydora large file ingest
# DOESN'T WORK FOR LARGE FILES
# gems/eventmachine-1.0.0.beta.4/lib/em/streamer.rb:88:in `get_chunk': integer 2147483648 too big to convert to `int' (RangeError)
require 'rubygems'
require 'rubydora'
require 'em-http-request'
Rubydora.repository = Rubydora.connect(:url => ENV['host'], :user => ENV['user'], :password => ENV['pass'], :timeout => 1200)