Skip to content

Instantly share code, notes, and snippets.

View cbeer's full-sized avatar

Chris Beer cbeer

View GitHub Profile
{
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "https://gist.githubusercontent.com/cbeer/dcd7b120bf211aa5e87a6140baca450b/raw/2fb919751a9a86b536211fdb20fc957c58470796/iiif-example.json",
"height": 3393,
"profile": [
"http://iiif.io/api/image/2/level2.json"
],
"protocol": "http://iiif.io/api/image",
"service": {
"@context": "http://iiif.io/api/auth/1/context.json",
@cbeer
cbeer / main.rb
Created May 30, 2017 23:48 — forked from coorasse/main.rb
CanCanCan Issue
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', '5.1.0' # use correct rails version
@cbeer
cbeer / gist:c62d364c10e3150bbdf1
Created July 16, 2014 15:47
Logstash to Piwik
input { stdin { } }
filter {
grok {
match => { "message" => "%{COMMONAPACHELOG} %{QS:agent} %{QS:referrer}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}

Keybase proof

I hereby claim:

  • I am cbeer on github.
  • I am cbeer (https://keybase.io/cbeer) on keybase.
  • I have a public key ASBTnRdXnwr4Tl54H5ESYNubL0mw7TpbARvBfut3vkwBmQo

To claim this, I am signing this object:

@cbeer
cbeer / LICENSE.txt
Last active February 9, 2017 21:28 — forked from mejackreed/LICENSE.txt
Leaflet-IIIF Cropping
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@cbeer
cbeer / 1_nw1
Last active February 9, 2016 22:51
# curl -X PUT "http://localhost:4567/netWorth/nw1/" -d @nw1 -H "Content-Type: text/turtle"
<> a <http://example.org/ontology#NetWorth> .
@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