Skip to content

Instantly share code, notes, and snippets.

View mark-dce's full-sized avatar

Mark Bussey mark-dce

  • Data Curation Experts
  • Minneapolis, MN
View GitHub Profile
@mark-dce
mark-dce / CONTRIBUTING.md
Created June 6, 2013 20:09
Project Hydra Contribution Guidelines v6.0

How to Contribute

We want your help to make Project Hydra great. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

Hydra Project Intellectual Property Licensing and Ownership

All code contributors must have an Individual Contributor License Agreement (iCLA) on file with the Hydra Project Steering Group. If the contributor works for an institution, the institution must have a Corporate Contributor License Agreement (cCLA) on file.

@mark-dce
mark-dce / LICENSE.txt
Created June 12, 2013 06:36
Boilerplate license file for project hydra use.
##########################################################################
# Copyright [yyyy] [originating institution(s)]
# Additional copyright may be held by others, as reflected in the commit log
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mark-dce
mark-dce / readme_footer.md
Created June 12, 2013 06:38
Markdown for Hydra info to be placed in footers of main readme in project hydra repos.
@mark-dce
mark-dce / gist:6e96f6188292ea897953
Created October 8, 2014 21:38
Namespacing problem
With a gemfile like this:
source 'https://rubygems.org'
gem 'nokogiri', '~> 1.6.3.1'
....
And a model defined like this
class Record < ActiveRecord::Base
def to_pbcore_xml
@mark-dce
mark-dce / gist:4178164b5c4b078d281e
Created March 3, 2015 16:24
XML Tidy version of Alexandria Fixture cusbspcsbhc78_100239.xml
<?xml version="1.0" encoding="UTF-8"?>
<mods:mods xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<mods:titleInfo usage="primary">
<mods:title>Unidentified man on Flying A Studios lot</mods:title>
</mods:titleInfo>
<mods:name usage="primary" type="corporate" authority="naf" authorityURI="http://id.loc.gov/authorities/names" valueURI="http://id.loc.gov/authorities/names/n87914041">
<mods:namePart>American Film Manufacturing Company</mods:namePart>
<mods:role>
<mods:roleTerm type="text" authority="marcrelator" authorityURI="http://id.loc.gov/vocabulary/relators" valueURI="http://id.loc.gov/vocabulary/relators/cre">Creator</mods:roleTerm>
</mods:role>
@mark-dce
mark-dce / gist:952e3f45c7dd10d2157b
Created April 16, 2015 18:31
Getting scalar error on object creation

With these classes:

class CodexMetadata < ActiveFedora::OmDatastream

  set_terminology do |t|
    t.root(path: "fields")
    t.title
    t.author
  end
MARKs-MB:sufia-centos mark$ git pull
remote: Counting objects: 53, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 53 (delta 17), reused 4 (delta 4), pack-reused 26
Unpacking objects: 100% (53/53), done.
From https://github.com/acozine/sufia-centos
* [new branch] java8 -> origin/java8
deaccf5..0837488 master -> origin/master
Already up-to-date.
MARKs-MB:sufia-centos mark$ git checkout java8
@mark-dce
mark-dce / gist:90bb32ea6f5deb502d05
Created August 14, 2015 18:46
Ansible adrl-prod.yml run
MARKs-MB:sufia-centos mark$ git checkout master
M vanilla.yml
Switched to branch 'master'
Your branch is behind 'origin/master' by 14 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
MARKs-MB:sufia-centos mark$ git pull
Updating deaccf5..1504cba
Fast-forward
README.md | 14 +++++++---
adrl-prod.yml | 26 ++++++++++++++++++
@mark-dce
mark-dce / gist:7bd0d9be51c3175c3697
Created August 14, 2015 19:33
Services role output for marmotta failure run
TASK: [services | install zip utility] ****************************************
ok: [hydra-head]
TASK: [services | download fits zip] ******************************************
ok: [hydra-head]
TASK: [services | unpack fits] ************************************************
ok: [hydra-head]
TASK: [services | make fits executable] ***************************************
@mark-dce
mark-dce / gist:f975a251cb089a437d04
Created August 15, 2015 01:43
Mark's vmware adrl-prod.yml
- name: provision production centos 7 host for ADRL 2.0
hosts: vanilla-hosts
remote_user: centos
vars:
server_name: hydra.local
rails_secret_key_base: 8b392d82866851f73cc415a65bf7e6dd630cc0e64298d65b4ad47a9f51ca33575ae8a4ae02584527c193cb2dff7a8ecf1abca6dc6efc3030442c11ec916fa098
capistrano_user: deploy
capistrano_group: deploy
install_user: ucsb
install_group: ucsb