Skip to content

Instantly share code, notes, and snippets.

Bill Erickson berick

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am berick on github.
  • I am berick (https://keybase.io/berick) on keybase.
  • I have a public key whose fingerprint is 7747 549C CAB8 7564 7FE7 8C2B 4B41 6A68 C85C BC2F

To claim this, I am signing this object:

View config.pm
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/config.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/config.pm
index 3873405..62c7777 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/config.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/config.pm
@@ -73,7 +73,7 @@ package config::copy_status;
use base qw/config/;
__PACKAGE__->table('config_copy_status');
__PACKAGE__->columns(Primary => 'id');
-__PACKAGE__->columns(Essential => qw/name holdable opac_visible copy_active restrict_copy_delete/);
+__PACKAGE__->columns(Essential => qw/name holdable opac_visible copy_active restrict_copy_delete is_available/);
View gist:f4e1ac051ac8860faaf72816d867b460
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
index 7b96edb..0116a41 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
@@ -454,6 +454,7 @@ sub run_TT {
$t_o->is_error( ($error) ? 't' : 'f' );
$logger->info("trigger: writing " . length($t_o->data) . " bytes to template output");
+ $env->{EventProcessor}->editor->rollback;
$env->{EventProcessor}->editor->xact_begin;
View foo.pm
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
@@ -454,8 +454,10 @@ sub run_TT {
$t_o->is_error( ($error) ? 't' : 'f' );
$logger->info("trigger: writing " . length($t_o->data) . " bytes to template output");
+ $env->{EventProcessor}->editor->rollback;
$env->{EventProcessor}->editor->xact_begin;
$t_o = $env->{EventProcessor}->editor->create_action_trigger_event_output( $t_o );
+ $env->{EventProcessor}->editor->commit;
View foo.py
diff --git a/src/pysip2/client.py b/src/pysip2/client.py
index 8afb58b..51fd98c 100644
--- a/src/pysip2/client.py
+++ b/src/pysip2/client.py
@@ -81,6 +81,8 @@ class Client(object):
pass
raise IOError("Disconnected from SIP2 server");
+ logging.debug('recv() read %d bytes : %s ' % (len(buf), buf))
+
View nginx-osrf-proxy-443
# File: /etc/nginx/sites-available/osrf-proxy-443 (symlink to sites-enabled)
# NOTE: The certificate in /etc/apache2/ssl/* has to be trusted by
# Chrome or websockets proxying will fail. Clicking through the
# SSL warning was not enough to make it succeed.
server {
listen 443;
ssl on;
ssl_certificate /etc/apache2/ssl/server.crt;
View foo.sql
INSERT INTO acq.edi_attr (key, label) VALUES (
'INCLUDE_ITEM_BARCODE',
oils_i18n_gettext('INCLUDE_ITEM_BARCODE','Orders Include Copy Barcodes', 'aea', 'label')
);
View foo.sql
INSERT INTO acq.edi_attr (key, label) VALUES (
'INCLUDE_ITEM_BARCODE',
oils_i18n_gettext('INCLUDE_ITEM_BARCODE','Orders Include Copy Barcodes', 'aea', 'label')
);
INSERT INTO acq.edi_attr_set_map (attr_set, attr) VALUES (<acct-id>, 'INCLUDE_ITEM_BARCODE');
View foo.pl
use OpenSRF::Utils::JSON;
my $j = {
select => {acqlid => ['id']},
from => {
jub => {
acqlid => {
join => {
acqcr => {
View hatch.asciidoc

Hatch Developer Install Documentation

Build and Test Hatch Java Libs

Windows

TODO

Linux

Download JDK 8

You can’t perform that action at this time.