Skip to content

Instantly share code, notes, and snippets.

View UgmaDevelopment's full-sized avatar

Bradley Turek UgmaDevelopment

View GitHub Profile
@UgmaDevelopment
UgmaDevelopment / gist:abfea553b77312d156111769bf2c05ab
Created May 8, 2020 07:21
An error that happens when you try to use double quotes in the JSON that you send with cURL. The solution: https://stackoverflow.com/a/22597714/5432315
C:\Users\Turek>curl -v -X POST localhost:8080/employees -H 'Content-Type:application/json' -d '{"name": "Samwise Gamgee", "role": "gardener"}' | python -mjson.tool
Note: Unnecessary use of -X or --request, POST is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
> POST /employees HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.55.1
@UgmaDevelopment
UgmaDevelopment / exist.log
Created January 14, 2020 21:06
This is the log from attempting to backup and restore a fresh install of exist-db
2020-01-14 13:17:43,920 [main] INFO (Configuration.java [<init>]:183) - Reading configuration from file C:\eXist-db\etc\conf.xml
2020-01-14 13:17:44,175 [main] INFO (Configuration.java [configureStartup]:1281) - Registered StartupTrigger: org.exist.security.BouncyCastleJceProviderStartupTrigger
2020-01-14 13:17:44,176 [main] INFO (Configuration.java [configureStartup]:1281) - Registered StartupTrigger: org.exist.protocolhandler.URLStreamHandlerStartupTrigger
2020-01-14 13:17:44,177 [main] INFO (Configuration.java [configureStartup]:1281) - Registered StartupTrigger: org.exist.extensions.exquery.restxq.impl.RestXqStartupTrigger
2020-01-14 13:17:44,179 [main] INFO (Configuration.java [configureStartup]:1281) - Registered StartupTrigger: org.exist.repo.AutoDeploymentTrigger
2020-01-14 13:17:44,593 [main] INFO (Configuration.java [configureValidation]:1491) - Add catalog uri file:///C:/eXist-db/etc/webapp//WEB-INF/catalog.xml
2020-01-14 13:17:44,593 [main] INFO (GrammarPool.java [<init>]:54) - Initia
@UgmaDevelopment
UgmaDevelopment / gist:87a15650a647d8b2dd389bd7f088e4d9
Created January 14, 2020 18:09
What happens when you try to open the exist-db dashboard v2.0.5 in Chrome 79
20index.html:1 GET http://resend.sundance.net/exist/apps/dashboard/bower_components/polymer/lib/elements/dom-if.html 404 (Not Found)
polymer-element.html:1 Uncaught ReferenceError: Polymer is not defined
at polymer-element.html:1
at polymer-element.html:1
(anonymous) @ polymer-element.html:1
(anonymous) @ polymer-element.html:1
index.html:1 GET http://resend.sundance.net/exist/apps/dashboard/bower_components/polymer/lib/utils/boot.html 404 (Not Found)
import-href.html:1 Uncaught ReferenceError: Polymer is not defined
at import-href.html:1
at import-href.html:1