Skip to content

Instantly share code, notes, and snippets.

View tingletech's full-sized avatar

Brian Tingle tingletech

View GitHub Profile

in person Meeting 1 (April 2014)

  • introductions
  • review the mission and objectives; produce a report that provides a technical blueprint for implementation of SNAC as a production co-operative
    • documents current technology
      • recommends how to turn it to production
    • documents new technology that is needed to operate co-operative
  • draft an outline of the final report
  • talk about how TAT will split up work and dependencies on other parts of the project
  • feedback on SNAC 2 no cost extension priorities
<facet-wikithumb xtf:meta="yes" xtf:store="yes" id="Philip_Henry_Delamotte"
     thumb="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Crystal_Palace_South_transept_&amp;_south_tower_from_Water_Temple.jpg/150px-Crystal_Palace_South_transept_&amp;_south_tower_from_Water_Temple.jpg"
     rights="http://en.wikipedia.org/wiki/File:Crystal_Palace_South_transept_&amp;_south_tower_from_Water_Temple.jpg">true</facet-wikithumb>
BT-macBookPro:xtf-cpf tingle$ ./bin/indexDump -index default -field facet-wikithumb | grep south_tower_from_Water_Temple
<$ id="Philip_Henry_Delamotte" thumb="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Crystal_Palace_South_transept_&_south_tower_from_Water_Temple.jpg/150px-Crystal_Palace_South_transept_&_south_tower_from_Water_Temple.jpg" rights="http://en.wikipedia.org/wiki/File:Crystal_Palace_South_transept_&_south_tower_from_Water_Temple.jpg">true|
http://wiki.numismatics.org/xeac:generic_installation
http://www.orbeon.com/download
http://sourceforge.net/projects/exist/files/Stable/2.0/
https://github.com/ewg118/xEAC
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:ListAllMyBuckets"],
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "Stmt1397623352000",
<!DOCTYPE html>
<html id="SampleDoc" xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>A Sample Page Using Polglot Markup</title>
<meta charset='utf-8' />
<!-- The HTML encoding declaration (meta element with the charset
attribute) is used to declare the encoding ofor HTML parsers, in line with the section on
Specifying a document’s character encoding -->
curl --silent https://gist.githubusercontent.com/tingletech/9823267/raw/163e5494fb0f2abe228a959ccd66e8bcb75a7c75/jq.json \
  | jq ".[0].from_user"
"_AaronNg"

It is still quoted, sure, but that has not stopped me from using the output in scripts / xargs.

@tingletech
tingletech / names_too_long.txt
Last active August 29, 2015 13:57
Objects that might need to be deleted and re-bulk imported. UUIDs from stage.
nuxeo@nuxeo-stg:/apps/content/new_path> egrep -e '\.[0-9]{13}' all.txt | grep /asset-library/ | grep -v "Anteater sample" | grep -v Aggie
f1d18815-4e8a-44d1-8624-c24e3328f753 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416
106a0521-afae-44c9-a586-10b82460d7e9 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010201.tif
fa3550f9-8382-40fb-aae7-aaa696cf7e55 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010202.tif
a213db12-ad6f-495b-a2c0-a369a8e08ae0 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010203.tif
836fba05-87b0-47c1-bb41-8da8304880a2 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010204.tif
8e129918-8d2e-4f8d-a61e-3dbf7d954a5b /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010220.tif
7f42abe9-70e1-40b0-8d54-e1aabdf42062 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P010221.tif
9f7b63a1-bc44-4029-ae0d-1117fb9e2c89 /asset-library/UCI/UCIHistoryEarlyCampusPho.1387313224416/AS-056_P0102
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- West Coast Negro Baseball Association: Bylaws ( Unknown ) -->
<METS:mets OBJID="ark:/13030/c8k938vj" TYPE="text" PROFILE="SobekCM"
xmlns:METS="http://www.loc.gov/METS/"
xmlns:mets="http://www.loc.gov/METS/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xsi:schemaLocation="http://www.loc.gov/METS/
http://www.loc.gov/standards/mets/mets.xsd
@tingletech
tingletech / DSC_DR.md
Last active August 29, 2015 13:57
DSC disaster recovery strategy

Keep a hot spare EBS volume in sync with production.

On dsc.cdlib.org;

  • run stunnel configured in server mode, set to exec rsync
    • specify connection must have specific client certificate
  • dump database to flat file

At 5am every day; start machine (attached boot EBS)

  1. mount zpool
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p545
rbenv rehash
rbenv local 1.9.3-p545
gem install scout_realtime
scout_realtime