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. |
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.1"; | |
import module namespace http = "http://expath.org/ns/http-client"; | |
(: For generating the personal access token to be used in this script, please select "public_repo | Access public repositories". :) | |
let $git-token := "<your-github-token>" | |
let $user-name := "<your-github-username>" | |
let $repo-name := "<your-repo-name>" | |
let $file-path := "<file=path>" | |
let $message := "<commit-message>" | |
let $new-file-content := serialize(<a/>) |
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
test.html: test.md tufte-css.lua html5.html | |
pandoc -t tufte-css.lua -f markdown -c tufte.css --template html5.html test.md > test.html | |
html5.html: | |
pandoc -D html5 > html5.html |
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
*.xlsx diff=xlsx | |
*.pptx diff=pptx | |
*.xmind diff=xmind | |
*.pdf diff=pdf | |
*.doc diff=doc | |
*.docx diff=docx |