Skip to content

Instantly share code, notes, and snippets.

View bess's full-sized avatar

Bess Sadler bess

View GitHub Profile
- hosts: '{{ host }}'
name: ensure python is installed for ansible
user: ubuntu
gather_facts: false
pre_tasks:
- name: update apt-get
raw: sudo apt-get update
- name: install python for ansible
raw: sudo apt-get -y install python-simplejson
@bess
bess / failed_examples.txt
Last active August 14, 2018 20:37
scholarsphere failed examples
Finished in 33 minutes 38 seconds (files took 3.48 seconds to load)
605 examples, 9 failures, 4 pending
Failed examples:
rspec ./spec/controllers/downloads_controller_spec.rb:112 # DownloadsController#show with a GenericWork downloads a zip
rspec ./spec/features/file_set/versioning_spec.rb:16 # FileSet versioning: sets the file set title and label to new and reverted file versions
rspec ./spec/features/generic_work/add_multiple_creators_spec.rb:27 # Create a Generic Work with multiple Creators a logged in user should have css ".tt-suggestion"
rspec ./spec/features/generic_work/batch_upload_and_delete_spec.rb:17 # Generic File batch uploading when logged in as a PSU user uploading a new work enforces a workflow
@bess
bess / nurax solr stack trace
Created January 25, 2019 14:13
nurax solr error
RSolr::Error::Http - 401 Unauthorized Error: {"responseHeader":{"status":401,"QTime":77},"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"RunExecutableListener is deprecated and disabled by default for security reasons. Legacy applications still using it must explicitely pass '-Dsolr.enableRunExecutableListener=true' to the Solr command line. Be aware that you should really disable API-based config editing at the same time, using '-Ddisable.configEdit=true'!","code":401}} URI: http://127.0.0.1:8983/solr/nurax/update?wt=json&commit=true Request Headers: {"Content-Type"=>"application/json"} Request Data: "[{\"system_create_dtsi\":\"2019-01-25T14:11:03Z\",\"system_modified_dtsi\":\"2019-01-25T14:11:03Z\",\"has_model_ssim\":\"Image\",\"id\":\"9p290943s\",\"accessControl_ssim\":\"ec3ec7b6-2632-4f45-a824-60706358c1f7\",\"depositor_ssim\":\"bess@curationexperts.com\",\"depositor_tesim\":\"bess@curationexperts.com\",\"title_tes
@bess
bess / corrupt_ladnn_files.txt
Created February 22, 2019 21:26
corrupt LADNN files
uclamss_1379_14984-06.tif: data
uclamss_1379_14984-07.tif: data
uclamss_1379_14984-08.tif: data
uclamss_1379_14984-09.tif: data
uclamss_1379_14987-01.tif: data
uclamss_1379_14987-02.tif: data
uclamss_1379_14987-03.tif: data
uclamss_1379_14987-04.tif: data
uclamss_1379_14987-05.tif: data
uclamss_1379_14987-06.tif: data
@bess
bess / ladnn_iiif_report.rb
Created March 5, 2019 15:09
A query to get iiif manifests and arks for LADNN
# How to use this file:
# Put it on a californica server in /home/deploy
# cd /opt/californica/current
# RAILS_ENV=production bundle exec rails runner "eval(File.read '/home/deploy/ladnn_iiif_report.rb')"
# NOTE: You may need to update the manifest url if you use it on a server other than californica-stage
# NOTE: At the time of this writing, the ARK is stored in the identifier field, which is multi-valued,
# and does not have the 'ark:' prefix on it. Those assumptions might change and this script will need
# to change to match the current practice for ARK storage.
require 'csv'
We can't make this file beautiful and searchable because it's too large.
IIIF Image API URL,Item ARK,IIIF manifest URL
https://s-u-cantaloupe01.library.ucla.edu/cantaloupe/iiif/2/1n79h428d%2Ffiles%2Ffb487e39-ede8-4a5f-92b5-1c5c6784e872,ark:/13030/hb000003n9,https://californica-stage.library.ucla.edu/concern/works/8336h188j/manifest
https://s-u-cantaloupe01.library.ucla.edu/cantaloupe/iiif/2/4m90dv48q%2Ffiles%2Fa78b6dea-22f1-4d2b-b5b3-91d960acf5e9,ark:/13030/hb009n998t,https://californica-stage.library.ucla.edu/concern/works/05741r680/manifest
https://s-u-cantaloupe01.library.ucla.edu/cantaloupe/iiif/2/xd07gs68j%2Ffiles%2F5342bfdc-03ba-40fc-ab52-97a4989a0b52,ark:/13030/hb038nb0bm,https://californica-stage.library.ucla.edu/concern/works/wh246s128/manifest
https://s-u-cantaloupe01.library.ucla.edu/cantaloupe/iiif/2/vt150j246%2Ffiles%2Fc0383d9d-9634-400d-9283-b1add1408306,ark:/13030/hb0489n655,https://californica-stage.library.ucla.edu/concern/works/5x21tf405/manifest
https://s-u-cantaloupe01.library.ucla.edu/cantaloupe/iiif/2/zs25x844t%2Ffiles%2F9dabe1c9-ddfb-44ab-bfdb-95e509c859f8,a
@bess
bess / delegates.rb
Created March 14, 2019 20:31
cantaloupe delegate script for hyrax
require 'net/http'
require 'uri'
require 'json'
require 'java'
##
# Delegate script to connect Cantaloupe to Fedora. It slices a piece of
# Cantaloupe for Samvera to consume.
#
# This is a first pass and doesn't have a lot of error checking built in yet.
@bess
bess / docker_log.txt
Created April 11, 2019 14:01
Error booting avalon docker image on ubuntu 18.04
bess@paz: (master):~/projects/avalon-docker$ sudo docker-compose up
Starting avalon-docker_hls_1_9cff1789705e ... done
Starting avalon-docker_redis_1_2a41efd1225a ... done
Starting avalon-docker_matterhorn_1_7dd6a898785d ... done
Starting avalon-docker_solr_1_e1a7e5d2701d ... done
Starting avalon-docker_db_1_fbac0814bd0a ... done
Starting avalon-docker_fedora_1_de0c3a4671d1 ... done
Starting avalon-docker_avalon_1_cddc979f0e87 ... done
Attaching to avalon-docker_redis_1_2a41efd1225a, avalon-docker_hls_1_9cff1789705e, avalon-docker_matterhorn_1_7dd6a898785d, avalon-docker_db_1_fbac0814bd0a, avalon-docker_fedora_1_de0c3a4671d1, avalon-docker_solr_1_e1a7e5d2701d, avalon-docker_avalon_1_cddc979f0e87
redis_1_2a41efd1225a | 1:C 11 Apr 2019 13:56:39.128 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
@bess
bess / mss_sample.csv
Created April 29, 2019 14:09
Ethiopic mss fixture object
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Project Name,Item Ark,Parent Ark,Object Type,File Name,Item Sequence,Type.typeOfResource,Type.genre,Rights.copyrightStatus,Rights.servicesContact,Language,Name.repository,AltIdentifier.local,Title,AltTitle.other,AltTitle.translated,AltTitle.uniform,Place of origin,Date.creation,Date.normalized,Format.extent,Format.dimensions,Support,Relation.rectoVerso,Description.note,Description.history,Description.condition,Coverage.temporal,Description.collation,Description.binding,Description.tableOfContents,Description.contents,Description.abstract,File Name
Ethiopic Manuscripts,21198/zz0009gx3x,,Collection,,22,text,,pd,"UCLA Charles E. Young Research Library Department of Special Collections, A1713 Young Research Library, Box 951575, Los Angeles, CA 90095-1575. E-mail: spec-coll@library.ucla.edu. Phone: (310)825-4988",,"University of California, Los Angeles. $b Library Special Collections",,Ethiopic Manuscripts,,,,,,,,,,,,,,,,,,,"Ethiopic manuscripts, consisting of sixty-four items, including fifty-four bound volumes a
Origin Stories
Here, at yatima’s request, is Geek Feminism Wiki’s own Bess Sadler‘s response to our current Book Club read, Coding Freedom. Normal Book Club posts will resume shortly!
The stories we tell ourselves about where we come from are the mechanism by which we continuously re-create our current understanding of reality. This is what makes origin stories so powerful: the shaping of the first part of the story determines the possibilities of the next chapter. Carolyn G. Heilbrun, in her book “Writing a Woman’s Life,” argues eloquently and convincingly that the narratives of biographies and autobiographies, especially the stories we tell about women’s lives, have suppressed the truth in order to make the “written life” conform to society’s expectations of what life should be. “Writing a Woman’s Life” has been deeply influential on me in understanding my own life’s path, on a par with Virginia Woolf’s famous exploration of an imaginary sister for William Shakespeare in “A Room of One’s Own.” Judith Shake