Skip to content

Instantly share code, notes, and snippets.

View ross-spencer's full-sized avatar
💭
🖖

Ross Spencer ross-spencer

💭
🖖
View GitHub Profile
@ross-spencer
ross-spencer / bash_strict_mode.md
Created February 10, 2024 04:31 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@ross-spencer
ross-spencer / PAB_setup.md
Created January 25, 2023 17:43 — forked from mikekeke/PAB_setup.md
PAB setup

Hosted PAB setup

This document describes how to prepare hosted PAB deployment from scratch that can operate on Alonzo purple testnet.

The following required to be run on host machine to use PAB with contracts in hosted scenario on testnet (for 2020-11-05 PAB Release):

  • Cardano node connected to Alonzo testnet
  • cardano wallet connected to node
  • chain-index connected to node
  • PAB executable connected to node, cardano-wallet and chain-index

Note: we are using somewhat more involved setup with a bit custom docker compose, and wallet and chain-index being built from sources, but there is ready to go node+wallet docker solution available

@ross-spencer
ross-spencer / puids.list
Last active December 13, 2022 10:43
Formats in PRONOM with signatures beginning with <?xml
fmt/101 Extensible Markup Language
fmt/1011 INTERLIS Transfer File
fmt/1039 Redcode Metadata (RMD) File
fmt/1047 Geography Markup Language
fmt/1091 Scribus Document
fmt/1134 GPS Exchange Format
fmt/1209 COLLADA Digital Asset Exchange (DAE)
fmt/1219 Gnumeric
fmt/1219 Gnumeric
fmt/1230 SK-XML
@ross-spencer
ross-spencer / README.md
Last active April 14, 2023 21:41
Digital Preservation Policies (by Caylin Smith) to Markdown

Digital preservation policies and strategies

CREATED BY: CAYLIN SMITH, CAMBRIDGE UNIVERSITY LIBRARY, CS2059 [AT] CAM [DOT] AC [ DOT] UK

DATE CREATED: 04/02/20

VERSION HISTORY

06/02/20: IFI POLICY ADDED; NATIONAL LIBRARY OF SCOTLAND POLICY UPDATED

@ross-spencer
ross-spencer / peer-review.md
Created March 14, 2022 10:14
Peer-review for archivists (and other things!)
@ross-spencer
ross-spencer / pcdm_filesets_testing.md
Created December 2, 2021 09:00 — forked from cmharlow/pcdm_filesets_testing.md
Testing PCDM modeling with Fileset options (PCDM PRs #68, #69) for existing Cornell use cases
@ross-spencer
ross-spencer / example-response.json
Last active December 3, 2021 08:27
Sample Stomp message queue consumer code for Fedora
--Headers: {
"destination": "/topic/fedora",
"expires": "0",
"message-id": "ID:wikibase-36143-1638450997244-4:1:1:1:6",
"org.fcrepo.jms.baseURL": "http://141.94.169.145:8080/rest",
"org.fcrepo.jms.eventID": "urn:uuid:cd36ab67-4a51-4e88-96ab-b07acf71d625",
"org.fcrepo.jms.eventType": "https://www.w3.org/ns/activitystreams#Create",
"org.fcrepo.jms.identifier": "/galaxy",
"org.fcrepo.jms.resourceType": "http://mementoweb.org/ns#TimeGate,http://www.w3.org/ns/ldp#BasicContainer,http://fedora.info/definitions/v4/repository#Resource,http://mementoweb.org/ns#OriginalResource,http://www.w3.org/ns/ldp#Container,http://www.w3.org/ns/ldp#Resource,http://www.w3.org/ns/ldp#RDFSource,http://fedora.info/definitions/v4/repository#Container",
"org.fcrepo.jms.timestamp": "1638519905399",
@ross-spencer
ross-spencer / 2021-07-14-nestor-checklist.md
Created July 14, 2021 09:37
Nestor audit/checklist in markdown

Explanation of the nestor seal for trustworthy digital long-term archives

Version 2.1

nestor working group on certification

URL: [Original document][original-document]

This document is largely translated automatically, with some manual intervention. The existence of incorrect line-wrapping in the source PDF affects the ability for the translation tool to understand sentences in their entireity.

@ross-spencer
ross-spencer / pkcs7
Last active May 27, 2021 07:13
Digitally signed documents in the govdocs selected corpus
govdocs_selected/PDF_1304/119596.pdf
govdocs_selected/PDF_1304/470680.pdf
govdocs_selected/PDF_997/475108.pdf
govdocs_selected/PDF_1304/475482.pdf
govdocs_selected/PDF_237/497449.pdf
govdocs_selected/PDF_1304/511649.pdf
govdocs_selected/PDF_997/518946.pdf
govdocs_selected/PDF_997/595453.pdf
govdocs_selected/PDF_1304/805594.pdf
govdocs_selected/PDF_997/866130.pdf
@ross-spencer
ross-spencer / latency.txt
Created February 23, 2021 13:06 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD