Skip to content

Instantly share code, notes, and snippets.

View dzoladz's full-sized avatar
📖
Reading at the library

Derek C. Zoladz dzoladz

📖
Reading at the library
View GitHub Profile
@eby
eby / self.nginxconf
Last active February 21, 2020 19:43
Evergreen Selfcheck Login for Nginx
# Presumes workstations have been created
# Set the homepage of the kiosk browser to selfchecks.mylibrary.org/location
server {
listen 443 ssl http2;
server_name selfchecks.mylibrary.org;
include shared/ssl.conf;
location /branch1 {
allow 192.168.1.0/24;
@stompro
stompro / auth-purge-00-notes.txt
Last active June 16, 2018 18:53
Purge unused authority records - Evergreen ILS
Before you try to clean up your authority records, you should have run the authority linking scripts,
and then set them up to run on a regular basis via cron.
#Link bibs to authorities
/openils/bin/authority_control_fields.pl -a
#Link authorities to other authorities.
/openils/bin/authority_authority_linker.pl -a
INSERT INTO container.copy_bucket_item (bucket, target_copy)
SELECT 1644, id FROM asset.copy
WHERE NOT deleted AND call_number IN
(SELECT id FROM asset.call_number WHERE label ~ 'RT(4[1-9]|5[0-9]|6[0-7])(\.|\s).*' AND NOT deleted);
@eby
eby / service-checklist.md
Created September 23, 2016 20:26 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@Dyrcona
Dyrcona / reingest_bibs.sql
Last active March 11, 2016 19:06
A simple, little SQL script to reingest bibs in Evergreen.
-- A simple SQL to "reingest" your bib records in Evergreen.
-- Feel free to use it however you like, though the easiest way is to
-- save it into a file and do psql -f filename.
DO $$
DECLARE
flag BOOLEAN;
BEGIN
SELECT enabled INTO flag
FROM config.internal_flag