Skip to content

Instantly share code, notes, and snippets.

@justinedelson
justinedelson / swagger.yaml
Last active September 27, 2021 13:44
Issue reproducing no descriptions on properties with referenced schemas
swagger: '2.0'
info:
description: This is a simple API
version: 1.0.0
title: Simple API
# tags are used for organizing operations
tags:
- name: admins
description: Secured Admin-only calls
@justinedelson
justinedelson / 2233.diff
Created March 25, 2020 15:46
change from #2233
Only in 4.4.2/ui.apps/META-INF/vault: nodetypes.cnd
Only in 4.4.2/ui.apps/META-INF/vault: privileges.xml
diff -r 4.4.2/ui.apps/META-INF/vault/properties.xml 4.4.3-SNAPSHOT/ui.apps/META-INF/vault/properties.xml
5c5
< <entry key="createdBy">brobert</entry>
---
> <entry key="createdBy">jedelson</entry>
8c8
< <entry key="created">2020-02-28T22:54:19.507-0800</entry>
---
@justinedelson
justinedelson / MyModelTest.java
Last active November 6, 2017 18:49
corrected model test for Jose
package com.myproject.models;
import static org.junit.Assert.*;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@justinedelson
justinedelson / sling-site.diff
Created October 1, 2017 18:36
Modifications to JBake generated files unrelated to my change
diff --git a/feed.xml b/feed.xml
index 405a9fe..3390d8d 100644
--- a/feed.xml
+++ b/feed.xml
@@ -4,7 +4,7 @@
<link href="http://sling.apache.org/"/>
<link rel="self" type="application/atom+xml" href="http://sling.apache.org/feed.xml"/>
<subtitle>Work in progress...</subtitle>
- <updated>2017-10-01T11:17:34Z</updated>
+ <updated>2017-10-01T08:32:24Z</updated>
@justinedelson
justinedelson / config.json
Created August 11, 2017 15:04
motion sensor to activate Pi touchscreen (or really any DPMS screen)
{
"host" : "XXX",
"port" : 1883,
"username" : "XXX",
"password" : "XXX",
"presenceTopic" : "sensor/XXX/presence",
"screenTopic" : "sensor/XXX/screen"
}
@justinedelson
justinedelson / SampleUse.java
Created June 30, 2016 00:36
Testing Sightly use pojo
import com.adobe.cq.sightly.WCMUsePojo;
public class SampleUse extends WCMUsePojo {
@Override
public void activate() throws Exception {
}
public String getName() {
return get("name", String.class);
public class CharacterTransformerFactory implements TransformerFactory {
@Override
public Transformer createTransformer() {
return new CharacterTransformer();
}
private class CharacterTransformer extends AbstractTransformer {
@Override
@justinedelson
justinedelson / failing-it.patch
Created May 20, 2016 15:54
Sling Models IT for child property injection
diff --git a/bundles/extensions/models/integration-tests/pom.xml b/bundles/extensions/models/integration-tests/pom.xml
index ae51b2a..df91e58 100644
--- a/bundles/extensions/models/integration-tests/pom.xml
+++ b/bundles/extensions/models/integration-tests/pom.xml
@@ -280,13 +280,13 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.models.api</artifactId>
- <version>1.2.3-SNAPSHOT</version>
+ <version>1.2.2</version>
@justinedelson
justinedelson / gist:96b791b1e0e91a248754
Last active August 29, 2015 14:22
AEM 6.1 Uber JAR Coordinates
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.1.0</version>
<classifier>obfuscated-apis</classifier>
<scope>provided</scope>
</dependency>

Keybase proof

I hereby claim:

  • I am justinedelson on github.
  • I am justinedelson (https://keybase.io/justinedelson) on keybase.
  • I have a public key whose fingerprint is A04B C4AD 3639 6AD5 A52C 8FE1 87DB F05A 134B 145C

To claim this, I am signing this object: