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
curl \ | |
-X POST \ | |
-H "Content-Type: application/xml" \ | |
-d '<?xml version="1.0" encoding="UTF-8"?> | |
<search> | |
<query path="details/title" summary-field="true"/> | |
<query path="details/author" summary-field="true"/> | |
</search>' \ | |
'http://localhost:8080/orbeon/fr/service/persistence/search/orbeon/bookshelf' |
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
# Based on https://tedspence.com/a-sql-server-docker-container-with-full-text-search-a1b7c5fc308c | |
FROM mcr.microsoft.com/mssql/server:2022-latest | |
USER root | |
RUN apt-get update && \ | |
apt-get install -yq gnupg gnupg2 gnupg1 curl apt-transport-https && \ | |
curl https://packages.microsoft.com/keys/microsoft.asc -o /var/opt/mssql/ms-key.cer && \ | |
apt-key add /var/opt/mssql/ms-key.cer && \ | |
curl https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list -o /etc/apt/sources.list.d/mssql-server-2022.list && \ | |
apt-get update && \ |
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
from mitmproxy import http | |
class AddHeader: | |
def __init__(self): | |
self.counter = 0 | |
def request(self, flow: http.HTTPFlow) -> None: | |
self.counter += 1 | |
flow.request.headers["My-Counter"] = str(self.counter) |
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
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
xmlns:math="http://www.w3.org/2005/xpath-functions/math" |
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
(function() { | |
const originalFetch = window.fetch; | |
window.fetch = function(...args) { | |
debugger; | |
return originalFetch.apply(this, args); | |
}; | |
})(); |
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
WITH RECURSIVE random_chars AS ( | |
SELECT | |
1 AS id, | |
1 AS group_id, | |
substr( | |
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', | |
floor(random() * 62)::int + 1, | |
1 | |
) AS char |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Login Page</title> | |
</head> | |
<body> | |
<form action="/orbeon/j_security_check" method="post"> | |
<label for="username">Username:</label> | |
<input type="text" name="j_username"> |
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
<xh:html xmlns:sql="http://orbeon.org/oxf/xml/sql" | |
xmlns:fr="http://orbeon.org/oxf/xml/form-runner" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xh="http://www.w3.org/1999/xhtml" | |
xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
xmlns:math="http://www.w3.org/2005/xpath-functions/math" | |
xmlns:exf="http://www.exforms.org/exf/1-0" |
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
<xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xi="http://www.w3.org/2001/XInclude" | |
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
xmlns:exf="http://www.exforms.org/exf/1-0" |
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
let | |
$this-year-start := xs:date(concat(year-from-date(current-date()), '-07-01')), | |
$fiscal-start := | |
if ($this-year-start <= current-date()) | |
then $this-year-start | |
else $this-year-start - xs:yearMonthDuration('P1Y'), | |
$fiscal-end := $fiscal-start + xs:yearMonthDuration('P1Y') - xs:dayTimeDuration('P1D'), | |
$input-date := xs:date('2020-08-03') | |
return | |
$fiscal-start <= $input-date and |
NewerOlder