Skip to content

Instantly share code, notes, and snippets.

View ncautotest's full-sized avatar

ncautotest

  • javax.net.ssl.SSLHandshakeException — Remote host closed connection during handshake
  • com.fasterxml.jackson.core.JsonParseException: Unrecognized token
View GitHub Profile
@ncautotest
ncautotest / OsgiConfigExampleServlet.java
Created November 24, 2023 08:59 — forked from nateyolles/OsgiConfigExampleServlet.java
Example servlet reading and updated OSGi configs in Adobe Experience Manager
package com.nateyolles.aem;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.cm.Configuration;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.sling.SlingServlet;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.servlets.SlingAllMethodsServlet;
@ncautotest
ncautotest / macos-tts-say-notification-text.applescript
Created May 23, 2023 08:56 — forked from glowinthedark/macos-tts-say-notification-text.applescript
Read aloud MacOS notifications using TTS voice synthesis
set previousList to {}
repeat
set currentList to {}
tell application "System Events"
tell process "Notification Center"
set allWindows to every window
set numWindows to count of allWindows
repeat with currentWindow in allWindows
try
@ncautotest
ncautotest / nodereinstall.sh
Created November 30, 2022 10:46 — forked from brock/nodereinstall.sh
Complete Node Reinstall. I've moved this to a repo at http://git.io/node-reinstall
#!/bin/bash
# node-reinstall
# credit: http://stackoverflow.com/a/11178106/2083544
## program version
VERSION="0.0.13"
## path prefix
PREFIX="${PREFIX:-/usr/local}"
@ncautotest
ncautotest / JcrQueryLibrary.md
Created May 6, 2021 15:03 — forked from floriankraft/JcrQueryLibrary.md
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path

@ncautotest
ncautotest / FrontendFrameworksPopularity.md
Created July 8, 2019 07:13 — forked from tkrotoff/FrontendFrameworksPopularity.md
Front end frameworks popularity (React, Vue and Angular)