Skip to content

Instantly share code, notes, and snippets.

Bill Erickson berick

Block or report user

Report or block berick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6a5f9f111de78f23dbfd8f17227fa534
diff --git a/evergreen/eg-web.yml b/evergreen/eg-web.yml
index aad83b6..c3711f1 100644
--- a/evergreen/eg-web.yml
+++ b/evergreen/eg-web.yml
@@ -8,7 +8,6 @@
become: true
file: dest="{{repo_base}}" owner={{deploy_user}} group={{deploy_user}} recurse=yes
- name: AngularJS Node Build
- become: true
npm: path={{repo_base}}/Evergreen/Open-ILS/web/js/ui/default/staff
View foo.diff
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
index 91c7994..e66993c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
@@ -435,7 +435,7 @@ sub update_state {
return undef;
}
$log->info( "Update of event ".$e->id." suceeded" );
- $ok = $self->editor->xact_commit if ($self->standalone);
+ $ok = $self->editor->commit if ($self->standalone);
View manifest.json
{
// Extension ID: knldjmfmopnpolahpmmgbagdohdnhkik
"key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcBHwzDvyBQ6bDppkIs9MP4ksKqCMyXQ/A52JivHZKh4YO/9vJsT3oaYhSpDCE9RPocOEQvwsHsFReW2nUEc6OLLyoCFFxIb7KkLGsmfakkut/fFdNJYh0xOTbSN8YvLWcqph09XAY2Y/f0AL7vfO1cuCqtkMt8hFrBGWxDdf9CQIDAQAB",
"name": "Hatch Native Messenger",
"version": "1.0",
"manifest_version": 2,
"description": "Relays messages to/from Hatch.",
"background" : {
"scripts" : ["extension.js"]
},
View hatch.asciidoc

Hatch Developer Install Documentation

Build and Test Hatch Java Libs

Windows

TODO

Linux

Download JDK 8

View foo.pl
use OpenSRF::Utils::JSON;
my $j = {
select => {acqlid => ['id']},
from => {
jub => {
acqlid => {
join => {
acqcr => {
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.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 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.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 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;
You can’t perform that action at this time.