Skip to content

Instantly share code, notes, and snippets.

View anarchivist's full-sized avatar
🐈‍⬛

María A. Matienzo anarchivist

🐈‍⬛
View GitHub Profile

Due to recent abusive intrusions into our channel, we may need to temporarily restrict participation to users who have registered accounts on Freenode. If you have received a Cannot send to channel message when attempting to talk, you can validate that you are not a malicious user and regain the ability to send messages to the channel by registering your account. Please see the link below for instructions, and don't hesitate to stop by #freenode to ask for help.

https://freenode.net/kb/answer/registration#nickname-setup

If you notice abusive activity in the channel, please notify one or more of our channel operators via private message. These people are: anarchivist, rsinger, and yo_bj.

@anarchivist
anarchivist / README.md
Last active August 29, 2015 14:15 — forked from anonymous/README.md

SHARE Notification Service Metadata JSON-LD context and sample

This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:

http://json-ld.org/playground#/gist/<gist igd>
#!/bin/bash
# This script is used by Icinga to post alerts into a Slack channel
# using the Incoming WebHooks integration. Create the channel, botname
# and integration first and then add this notification script in your
# Icinga configuration.
#
# All variables that start with NAGIOS_ are provided by Icinga as
# environment variables when an notification is generated.
# A list of the env variables is available here:
@anarchivist
anarchivist / dagre-d3.min.js
Last active August 29, 2015 14:01 — forked from mbostock/.block
DPLA ingestion workflow
(function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var j=typeof require=="function"&&require;if(!h&&j)return j(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<d.length;g++)e(d[g]);return e})({1:[function(a,b,c){var d=self;d.dagreD3=a("./index")},{"./index":2}],2:[function(a,b,c){b.exports={Digraph:a("graphlib").Digraph,Renderer:a("./lib/Renderer"),json:a("graphlib").converter.json,layout:a("dagre").layout,version:a("./lib/version")}},{"./lib/Renderer":3,"./lib/version":4,dagre:11,graphlib:28}],3:[function(a,b,c){function g(){this._layout=d(),this.drawNodes(k),this.drawEdgeLabels(l),this.drawEdgePaths(m),this.positionNodes(n),this.positionEdgeLabels(o),this.positionEdgePaths(p),this.transition(q),this.postLayout(r),this.postRender(s),this.edgeInterpolate("bundle"),this.edgeTension(.95)}function h
{
"@context": "http://rawgithub.com/anarchivist/24cfafb9d62113fdfc49/raw/dpla-mapv3-collection.jsonld",
"score": 1,
"ingestionSequence": 9,
"_rev": "1-ae4e0814c14f0bb1d1953574dfa5ac5d",
"ingestDate": "2014-04-06T07:57:45.390752",
"id": "f886dbd0b329b3a839a8d542423c1e08",
"title": "Ludlow Collection",
"_id": "bpl--commonwealth-oai:9w032772j",
"description": "",
mssamac03:ruby-bagit mam54$ time rake spec
(in /Users/mam54/Documents/Code/git/ruby-bagit)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S bundle exec rspec -fs --color "spec/bagit_spec.rb" "spec/fetch_spec.rb" "spec/manifest_spec.rb" "spec/tag_info_spec.rb" "spec/validation_spec.rb"
BagIt::Bag
empty bag
should be empty
bag with files
should be a directory
should not be empty
@anarchivist
anarchivist / brew doctor
Created May 3, 2011 12:39
Afflib install failure
[nruest@megatron:nruest]$ brew doctor
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
@anarchivist
anarchivist / Fits.py
Created March 9, 2010 21:12 — forked from cbeer/Fits.py
Jython Servlet wrapper for FITS <http://code.google.com/p/fits/>
#!/usr/bin/env jython
# This is a Jython Servlet wrapper for FITS <http://code.google.com/p/fits/>
#
# INSTALL:
# Set the FITS_HOME variable to the location of the FITS package
#
# Some JARs may need to be moved into the endorsed folder (./common/endorsed)
# like jaxon, jdom, saxon, saxpath, and xerces.
#
@anarchivist
anarchivist / hacker201starter.py
Created February 22, 2010 19:06 — forked from dchud/hacker201starter.py
Example python script for code4lib 2010 hacker 201/202 session
#!./bin/python
import os
import sqlite3
import web
import pymarc
print 'Clearing out old db'
@anarchivist
anarchivist / iii_to_unicode.php
Created December 13, 2009 01:13 — forked from aadl/iii_to_unicode.php
Changes III's unicode brackets into encoded unicode characters.
<?php
/*
Changes III's unicode brackets into encoded unicode characters.
We have found this more reliable than using the pre-encoded values from the interface. The XRecord will give the bracket output.
This presumes you have your database in unicode in iii. iii can convert your database to unicode for you. call the helpdesk
If you see codes like {231} without the 'u' then you haven't converted or are entering them in old format