Skip to content

Instantly share code, notes, and snippets.

@TurekBot
TurekBot / gist:46d7e79bc7f498ef81ec921883558106
Created October 15, 2019 23:35
Cannot store XSL with em dash
2019-10-15 17:20:32,570 [qtp1683360946-59] ERROR (Deploy.java [installAndDeployFromDb]:240) - Deployment incomplete, 1 issues found: replace-email.xsl: replace-email.xsl cannot be stored
org.expath.pkg.repo.PackageException: Deployment incomplete, 1 issues found: replace-email.xsl: replace-email.xsl cannot be stored
at org.exist.repo.Deployment.deploy(Deployment.java:461) ~[exist-core-5.0.0.jar:5.0.0]
at org.exist.repo.Deployment.installAndDeploy(Deployment.java:281) ~[exist-core-5.0.0.jar:5.0.0]
at org.exist.repo.Deployment.installAndDeploy(Deployment.java:158) ~[exist-core-5.0.0.jar:5.0.0]
at org.exist.xquery.modules.expathrepo.Deploy.installAndDeployFromDb(Deploy.java:238) [exist-expathrepo-5.0.0.jar:5.0.0]
at org.exist.xquery.modules.expathrepo.Deploy.eval(Deploy.java:182) [exist-expathrepo-5.0.0.jar:5.0.0]
at org.exist.xquery.BasicFunction.eval(BasicFunction.java:74) [exist-core-5.0.0.jar:5.0.0]
at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:41) [exist-core-5.0.0.jar:5.0.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- This template will return the Message, changing the email address to the one provided. -->
<xsl:output method="xml" omit-xml-declaration="yes"/>
<!-- Here we set up a parameter that will be passed in. -->
<xsl:param name="emailReplacement"/>
<!-- This block copies the whole thing (the input) into the output. -->
<xsl:template match="node() | @*">
<xsl:copy>
@TurekBot
TurekBot / keybase.md
Created July 20, 2020 00:52
Proof that I'm me.

Keybase proof

I hereby claim:

  • I am turekbot on github.
  • I am bradleyturek (https://keybase.io/bradleyturek) on keybase.
  • I have a public key ASDN30loKJ5J04uaS-Brg5IWAPP-ydKMKaSFsrYtELfmZAo

To claim this, I am signing this object:

@TurekBot
TurekBot / gist:6da5acd27f92c86dc68d3f6588eeb499
Created August 30, 2021 04:05
Iterates through all subfolders and files of the given folder and changes the owner from you to someone you specify.
/*
Script to iterate through Files/Folders in Google Drive and change Ownership.
Will only attempt change after getting the current Owner and checking for match
from 'Welcome' sheet.
See blog post for full details and original spreadsheet: https://www.pbainbridge.co.uk/2020/04/bulk-change-ownership-of-google-drive.html
Note:
> Current Owner will become an Editor - include option to remove them?
> New Owner will get an email for each item.
@TurekBot
TurekBot / winking_hamlet_skull.svg
Created December 5, 2023 20:18
Winking Hamlet Skull
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.