Skip to content

Instantly share code, notes, and snippets.

🕊

Mark A. Matienzo anarchivist

🕊
Block or report user

Report or block anarchivist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anarchivist
anarchivist / clark.log
Last active Sep 16, 2019
Clarke and Clements indexing errors
View clark.log
Loading data/ead/cmu-clark/hemingwayernest.xml into index...
I, [2019-09-16T09:23:54.983919 #92677] INFO -- : traject (3.2.0) executing with: `-u http://127.0.0.1:8983/solr/blacklight-core/ -i xml -c /Users/matienzo/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/bundler/gems/arclight-f2ca695d9025/lib/arclight/traject/ead2_config.rb data/ead/cmu-clark/hemingwayernest.xml`
I, [2019-09-16T09:23:54.984047 #92677] INFO -- : Reading from data/ead/cmu-clark/hemingwayernest.xml
D, [2019-09-16T09:23:54.984181 #92677] DEBUG -- : beginning Traject::Indexer#process with settings: {"solr.url"=>"http://127.0.0.1:8983/solr/blacklight-core/", "reader_class_name"=>"Arclight::Traject::NokogiriNamespacelessReader", "solr_writer.commit_on_close"=>"true", "repository"=>nil, "logger"=>#<Logger:0x00007ff39c1587f8 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007ff39c158780 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007ff39c158708 @shift_period_suffix=nil, @shift_size=nil, @shift_age=ni
@anarchivist
anarchivist / error.log
Created Sep 9, 2019
Error on IU CSHM finding aid ohrc072.xml
View error.log
E, [2019-09-09T14:33:44.296106 #7497] ERROR -- : Unexpected error on record <record #1 (./data/ead/InU-cshm/ohrc072.xml #1)>
while executing (to_field "level_ssm" at /Users/matienzo/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/bundler/gems/arclight-8117240af792/lib/arclight/traject/ead2_config.rb:80)
Record: <?xml version="1.0" encoding="UTF-8"?>
<ead xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:isbn:1-931666-22-9 http://www.loc.gov/ead/ead.xsd">
<eadheader relatedencoding="dublincore" audience="external" langencoding="iso639-2b" scriptencoding="iso15924" repositoryencoding="iso15511" countryencoding="iso3166-1" dateencoding="iso8601" findaidstatus="edited-full-draft">
<eadid encodinganalog="identifier" identifier="ohrc072" countrycode="US" mainagencycode="US-InU">ohrc072</eadid>
<filedesc>
View manifest.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://purl.stanford.edu/xt162pg0437/iiif/manifest",
"@type": "sc:Manifest",
"label": "Annual report of the Council of the Corporation of Foreign Bondholders. 1988",
"attribution": "Copyright © Stanford University. All Rights Reserved.",
"logo": {
"@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette/full/400,/0/default.jpg",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
View 4769498.json
This file has been truncated, but you can view the full file.
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://example.com/iiifcollection.json",
"@type": "sc:Collection",
"label": "Stanford historical photograph collection, 1887-circa 1996 (inclusive)",
@anarchivist
anarchivist / manifests_by_host.sparql
Created Dec 10, 2018
Match Wikidata items with IIIF manifests by host or domainname
View manifests_by_host.sparql
# Match Wikidata items with IIIF manifests by domain name
SELECT ?item ?itemLabel ?manifest
WHERE
{
?item wdt:P6108 ?manifest .
FILTER regex (STR(?manifest), "wdl.org").
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
View code4lib_abuse_notice.md

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/faq.shtml#nicksetup

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 / strip-oac-attribs.xslt
Last active Jun 15, 2018
Strip OAC attributes from EAD
View strip-oac-attribs.xslt
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output indent="yes"/><xsl:param name="removeAttributesNamed" select="'|C-ORDER|MAX-C-ORDER|score|cdlpath:parent|cdlpath:grandparent|xmlns:cdlpath|'"/><xsl:template match="node()|@*" name="identity"><xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy></xsl:template><xsl:template match="@*"><xsl:if test= "not(contains($removeAttributesNamed, concat('|', name(), '|') ) ) "><xsl:call-template name="identity"/></xsl:if></xsl:template></xsl:stylesheet>
@anarchivist
anarchivist / stanford_arts.geojson
Created Jan 17, 2018
Stanford Arts Map as GeoJSON
View stanford_arts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anarchivist
anarchivist / beehive.conf
Last active Jan 8, 2018
Beehive configuration for causing successful, production Netlify deploy events to fire off an update to a PuSH hub
View beehive.conf
{
"Bees": [
{
"Name": "Superfeedr",
"Class": "httpbee",
"Description": "Superfeeder PuSH endpoint",
"Options": []
},
{
"Name": "Netlify",
View gist:1770c48ad4e33ac427c7562debd06389
tsukemono:matienzo.org mark$ webmention http://matienzo.org/2018/004/quake/
Finding links on http://matienzo.org/2018/004/quake/
Found 7 links:
http://matienzo.org
https://earthquake.usgs.gov/earthquakes/eventpage/nc72948801
https://chaos.social/@anarchivist/99294237499617350
https://twitter.com/anarchivist/status/949065781597298688
https://news.indieweb.org/en
http://matienzo.org/2018/004/quake/
http://microformats.org/wiki/h-event
You can’t perform that action at this time.