Skip to content

Instantly share code, notes, and snippets.

View tingletech's full-sized avatar

Brian Tingle tingletech

View GitHub Profile

checker prints help

checker init [-d dir] [-Y] runs an interactive script to configure a server

checker show_conf [-d dir] validate and show configuration options

checker start [-d dir] starts the checker daemon

checker status [-d dir] produces a report of the server status, including reports of any errors

http://ark.cdlib.org/mets/ark:/13030/kt209nd900/
http://ark.cdlib.org/mets/ark:/13030/kt2g503400/
http://ark.cdlib.org/mets/ark:/13030/kt3b69r700/
http://ark.cdlib.org/mets/ark:/13030/kt509nf200/
http://ark.cdlib.org/mets/ark:/13030/kt60003500/
http://ark.cdlib.org/mets/ark:/13030/kt3d5nf001/
http://ark.cdlib.org/mets/ark:/13030/kt467nf001/
http://ark.cdlib.org/mets/ark:/13030/kt5z09r801/
http://ark.cdlib.org/mets/ark:/13030/kt75803701/
http://ark.cdlib.org/mets/ark:/13030/kt7m3nf301/
{
"slides": [
{
"components": [
{
"TextBox": {},
"x": 87,
"y": 38,
"scale": {
"x": 1,
@tingletech
tingletech / licensed.sh
Last active August 29, 2015 14:01
# licensed@publishing-stg:~> more /etc/init.d/monit.aetb
#
### BEGIN INIT INFO
# Provides: licensed
# Required-Start: $network $syslog
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 1 2 6
# Description: Start and stop monit for licensed app
### END INIT INFO
#
ucm_li_1998_009_k.tif -> UCM_LI_1998_009_K.tif
ucm_li_2001_029_k.tif -> UCM_LI_2001_029_K.tif
ucm_li_2001_030_k.tif -> UCM_LI_2001_030_K.tif
ucm_li_2001_031_k.tif -> UCM_LI_2001_031_K.tif
ucm_li_2001_032_k.tif -> UCM_LI_2001_032_K.tif
ucm_li_2001_033_k.tif -> UCM_LI_2001_033_K.tif
ucm_li_2001_035_k.tif -> UCM_LI_2001_035_K.tif
ucm_li_2001_036_k.tif -> UCM_LI_2001_036_K.tif
ucm_li_2001_039_k.tif -> UCM_LI_2001_039_K.tif
ucm_li_2001_040_k.tif -> UCM_LI_2001_040_K.tif
@tingletech
tingletech / pdf.md
Last active August 29, 2015 14:01
proposed guidelines for OAC/Calisphere hosted PDF submissions

PDF guidelines for access

Set MIME type to applicaiton/octet-stream to trigger a download, rather than displaying the PDF in the browser plugin. (This would make web-optimized / linerized PDFs moot; but it might be a good practice to use this feature.)

Information density of PDF files should not exceed one Mega(1024^2)-byte per page (the inverse should not be lower than 1 page per MB), with an ideal density of less than 0.5 MB/page or more than the inverse 2 pages per MB.

Display page count as well as file size, as the file size might not convey as much meaning to users as "114 pages".

@tingletech
tingletech / shib_clause.md
Created May 9, 2014 18:17
shibboleth contract language

COMPANY will join the InCommon Federation, remain a member in good standing and utilize the shibboleth software or software known to be compatible with the latest versions of Shibboleth software (shibboleth software can be found at www.shibboleth.net). X University will determine appropriate compatibility of software. InCommon Federation metadata will be used to securely maintain the trust relationship between the X University’s Shibboleth identity provider and Supplier’s Shibboleth service provider. X University’s identity provider will provide identities in the form of [email protected] as attributes to the COMPANY service provider. Additional attributes may also be provided based on negotiations between COMPANY and X University. X University will sponsor the COMPANY membership in InCommon Federation if requested.

require 'date'
require 'nokogiri'
inFile, outFile, ark = ARGV
io = File.open(inFile, "r"); input = Nokogiri::XML(io); io.close
# Evil? Sure, but makes for less code and this doc doesn't need them.
input.remove_namespaces!
feed = input.root
out = Nokogiri::XML::Builder.new { |xml|
ucm_li_2001_077*
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_i.jpg /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s08.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_j.jpg /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s09.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_k.jpg /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s10.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_k.tif /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s11.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s01.tif /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s12.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s02.tif /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s13.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s03.tif /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s14.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s04.tif /apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s15.tif
/apps/content/raw_files/UCM/LIJA/ucm_li_2001_077_s05.tif /apps/content/raw_files/UCM/LIJA/
@tingletech
tingletech / models.py
Created April 23, 2014 15:48
SNAC 2 merge sqlalchemy model for postgres database
#!/usr/bin/python
# /usr/bin/python --version: Python 2.6.6
import decimal, re, datetime, hashlib, os.path, dateutil.parser, pickle
import urllib, urllib2, httplib
from sqlalchemy import Table, Column, Integer, DateTime, Date, ForeignKey, create_engine, UniqueConstraint#,MetaData
from sqlalchemy import orm, types, func
from sqlalchemy.exc import InvalidRequestError, IntegrityError
from sqlalchemy.schema import DDL, FetchedValue, DefaultClause
from sqlalchemy.sql.expression import and_, literal_column, or_, text