Skip to content

Instantly share code, notes, and snippets.

View bess's full-sized avatar

Bess Sadler bess

View GitHub Profile

DCE Standard Toolset

  • SSH Key Management & key pair
  • GitHub account - with key pair
  • Recent OSX distribution (High Sierra)
  • Xcode
  • Xcode command line tools (xcode-select --install)
  • Bluejeans
  • Editor (Textmate / Rubymine / Atom)
  • Homebrew
  • Slack
# /home/bess/.tmuxinator/dlpcurate.yml
name: dlpcurate
root: ~/projects/dlp-curate
pre_window: rvm use 2.5.3@dlp-curate
#on_project_start: sudo /etc/init.d/postgresql start && sudo /etc/init.d/redis-server start
#on_project_stop: sudo /etc/init.d/postgresql stop && sudo /etc/init.d/redis-server stop
@bess
bess / manifest.json
Created October 30, 2019 17:26
iiif manifest
// 20191030121700
// https://tenejo-dev.curationexperts.com/concern/works/44558d306/manifest
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@type": "sc:Manifest",
"@id": "https://tenejo-dev.curationexperts.com/concern/works/44558d306/manifest",
"label": "My favorite animal",
"metadata": [
{
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
@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
@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 / 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.
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 / 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'
@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