Skip to content

Instantly share code, notes, and snippets.

View tternquist's full-sized avatar

Tom Ternquist tternquist

View GitHub Profile
@hansenmc
hansenmc / arrow_operator.xqy
Created January 2, 2016 00:29
MarkLogic supports the Arrow Operator =>
xquery version "3.1"; (: version must be 3.1 :)
(: http://www.w3.org/TR/xpath-31/#id-arrow-operator :)
"Happy " || current-date() => year-from-date() || "!"
@ableasdale
ableasdale / ml-support-dump.sh
Last active May 18, 2017 00:05
MarkLogic PStack Script
#!/bin/bash
# root check
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# default argument check
if [[ -z $1 ]]; then