Skip to content

Instantly share code, notes, and snippets.

View mcritchlow's full-sized avatar

Matthew Critchlow mcritchlow

  • UC San Diego
  • San Diego
View GitHub Profile
@mcritchlow
mcritchlow / eopkg-check.txt
Created June 21, 2017 02:55
result of eopkg check
Checking integrity of linux-lts Broken
Corrupted file: /lib/modules/4.9.32-30.lts/modules.alias
Corrupted file: /lib/modules/4.9.32-30.lts/modules.alias.bin
Corrupted file: /lib/modules/4.9.32-30.lts/modules.dep
Corrupted file: /lib/modules/4.9.32-30.lts/modules.dep.bin
Corrupted file: /lib/modules/4.9.32-30.lts/modules.symbols
Corrupted file: /lib/modules/4.9.32-30.lts/modules.symbols.bin
..
..
Checking integrity of mariadb-libs Broken
@mcritchlow
mcritchlow / bundle.out
Created May 17, 2017 20:56
activesupport conflict - hyrax
[EngineCart] Unable to find test application dependencies in /home/mcritchlow/projects/ucsd/hydra-projects/hyrax/.internal_test_app/Gemfile, using placeholder dependencies
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...........................................
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
hyrax was resolved to 2.0.0.alpha, which depends on
active-fedora (>= 11.1.3) was resolved to 11.1.3, which depends on
activesupport (< 6, >= 4.2.4)
@mcritchlow
mcritchlow / install.md
Last active February 18, 2023 08:45
Installing Zoom on Solus OS
@mcritchlow
mcritchlow / solus-highlight.yml
Last active April 9, 2017 21:24
Solus Package
name : highlight
version : 3.36
release : 1
source :
- http://www.andre-simon.de/zip/highlight-3.36.tar.bz2 : 34cd5bcf52714f83364460c0c3551320564c56ff4e117353034e532275792171
license : GPL-3.0
component : programming.tools
summary : Convert source code to formatted text with syntax highlighting
description: |
Highlight converts source code to HTML, XHTML, RTF, LaTex, TeX, SVG, BBCode and terminal escape sequences with coloured syntax highlighting. Language definitions and colour themes are customizable.

Keybase proof

I hereby claim:

  • I am mcritchlow on github.
  • I am mcritchlow (https://keybase.io/mcritchlow) on keybase.
  • I have a public key ASDyr0WKT0J_Ty-IximEu92jNyzBiz4IhUol2HTgmxKfBwo

To claim this, I am signing this object:

Using Sidekiq in Hyrax

Hyrax no longer packages a default queuing back-end. Hyrax builds its jobs using Rails' ActiveJob framework, so you are free to use the queuing system of you choice (e.g. Resque, DelayedJob, Sidekiq) to manage long-running or slow processes. Flexibility and choice come with a cost, though, and there's some work involved in integrating whichever queueing back-end you select. This page offers guidance on installing and using Sidekiq to handle background jobs in your Hyrax app.

Pre-Requisites: Install and Run Redis

@mcritchlow
mcritchlow / output.txt
Last active September 22, 2016 15:32
RDF type validation
DBPedia record for UCSD RDF type listing
http://umbel.org/umbel/rc/University
http://dbpedia.org/class/yago/School108276720
http://dbpedia.org/ontology/EducationalInstitution
http://umbel.org/umbel/rc/EducationalOrganization
http://umbel.org/umbel/rc/Organization
http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent
http://www.w3.org/2002/07/owl#Thing
http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson
http://dbpedia.org/class/yago/Abstraction100002137
@mcritchlow
mcritchlow / sparql_values.rb
Last active February 5, 2016 23:00
A proposed DSL syntax for SPARQL 1.1 VALUES
it "should support VALUES" do
# should support single value construct (less verbose form)
expect(subject.select
.where([:s, RDF::URI('http://purl.org/dc/terms/title'), :title])
.values([:title], ["This title", "Another title"]).to_s)
.to eq "SELECT * WHERE { ?s <http://purl.org/dc/terms/title> ?o . VALUES ?title { 'This title' 'Another title' } }"
# should support single value construct (general form)
expect(subject.select
.where([:s, RDF::URI('http://purl.org/dc/terms/title'), :title])
@mcritchlow
mcritchlow / name_test.rb
Created February 6, 2015 19:41
Array#uniq test with Solr document
require 'json'
# test object: bb08540731
# test a file with unique names
uniq_file = File.read('names_uniq_test.json')
json1 = JSON.parse(uniq_file)
names1 = json1['name_tesim']
@mcritchlow
mcritchlow / output
Created October 8, 2014 16:47
ArchivesHub AccessRestrictions Sample Usage
<http://data.archiveshub.ac.uk/id/archivalresource/gb1832-crck/crck2/3/34> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Closed until 2061 in accordance with Data Protection laws. "@EN .
<http://data.archiveshub.ac.uk/id/archivalresource/gb162-mss.brit.emp.s.547> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Bodleian reader's ticket required."@EN .
<http://data.archiveshub.ac.uk/id/archivalresource/gb29-eulms231> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Usual EUL arrangements apply."@EN .
<http://data.archiveshub.ac.uk/id/archivalresource/gb271-gcpppower-b> <http://data.archiveshub.ac.uk/def/accessRestrictions> " Access is open to bona fide scholars by appointment only. "@EN .
<http://data.archiveshub.ac.uk/id/archivalresource/gb271-gcppturle> <http://data.archiveshub.ac.uk/def/accessRestrictions> " Access is open to bona fide scholars by appointment only. "@EN .
<http://data.archiveshub.ac.uk/id/archivalresource/gb162-mss.ind.ocn.s.341> <http://data.archiveshub.ac.