This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'rest_client' | |
require "highline/import" | |
# This is a way to bulk update objects in ArchivesSpace using a JSON template | |
# It's in Ruby and you'll need to have rest_client and highline installed ( gem install rest_client highline ) | |
# run it with ruby ./bulk_update.rb | |
# good luck and backup and use at your own risk! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(:module namespace gitsync = "http://syriaca.org/ns/gitsync";:) | |
(:~ | |
: XQuery endpoint to respond to Github webhook requests. Query responds only to push requests. | |
: The EXPath Crypto library supplies the HMAC-SHA1 algorithm for matching Github secret. | |
: | |
: Secret can be stored as environmental variable. | |
: Will need to be run with administrative privileges, suggest creating a git user with privileges only to relevant app. |