Skip to content

Instantly share code, notes, and snippets.

Marc Savy msavy

Block or report user

Report or block msavy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3165f753f8cf16d24e58ee7bb14beaab
$ jabba install openjdk-shenandoah@1.8.0
Downloading openjdk-shenandoah@1.8.0 (https://builds.shipilev.net/openjdk-shenandoah-jdk8/openjdk-shenandoah-jdk8-latest-linux-x86_64-release.tar.xz)
40199568/40199568
Extracting /tmp/jabba-d-363427680 to /home/msavy/.jabba/jdk/openjdk-shenandoah@1.8.0
openjdk-shenandoah@1.8 -> /home/msavy/.jabba/jdk/openjdk-shenandoah@1.8.0
$ java -version
openjdk version "1.8.0-builds.shipilev.net-openjdk-shenandoah-jdk8"
OpenJDK Runtime Environment (build 1.8.0-builds.shipilev.net-openjdk-shenandoah-jdk8-b422-20190718-aarch64-shenandoah-jdk8u222-b10)
OpenJDK 64-Bit Server VM (build 25.71-b422-20190718-aarch64-shenandoah-jdk8u222-10, mixed mode)
View console.log
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/css/icon-fonts/cms/Halifax/fonts/icomoon.ttf?yytztc. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Agenda-Regular/agendaRegular.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Agenda-Bold/agendaBold.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.halifax.co.uk/assets/fonts/Helvetica-Neue-Condensed/helveticaNeueCondensedBlack.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows rea
View output.json
{
"components" : {
"schemas" : {
"test.io.smallrye.openapi.runtime.scanner.entities.KitchenSink" : {
"description" : "This is the kitchen sink description!",
"required" : [ "booking", "ccList", "creditCardMap", "fooArray", "fuzzListWildcard", "seatPreference", "unsafeList" ],
"properties" : {
"array" : {
"type" : "array",
"items" : {
View example.java
/*
* (non-Javadoc)
* @see io.apiman.gateway.engine.policies.AbstractMappedPolicy#doProcessFailure(io.apiman.gateway.engine.beans.PolicyFailure, io.apiman.gateway.engine.policy.IPolicyContext, java.lang.Object, io.apiman.gateway.engine.policy.IPolicyFailureChain)
*/
@Override
protected void doProcessFailure(PolicyFailure failure, IPolicyContext context, CorsConfigBean config,
IPolicyFailureChain chain) {
System.out.println("In process failure");
failure.getHeaders().put("X-FROM-PROCESS-FAILURE", "Hello!");
View diff.patch
diff --git a/pom.xml b/pom.xml
index 2e7287d..8de48bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -307,20 +307,21 @@
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
View gist:b37951b7956822924fafa0b7aac52807
[INFO] --- nexus-staging-maven-plugin:1.6.3:deploy (injected-nexus-deploy) @ apiman-tools-i18n ---
[INFO] Performing local staging (local stagingDirectory="/home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging")...
[INFO] + Using server credentials "ossrh" from Maven settings.
[INFO] * Connected to Nexus at https://oss.sonatype.org:443/, is version 2.14.8-01 and edition "Professional"
[INFO] * Using staging profile ID "4073c4fbdd610a" (matched by Nexus).
[INFO] Installing /home/msavy/apiman-release/target/git-repos/apiman/tools/i18n/target/apiman-tools-i18n-1.4.0.Final.jar to /home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging/4073c4fbdd610a/io/apiman/apiman-tools-i18n/1.4.0.Final/apiman-tools-i18n-1.4.0.Final.jar
[INFO] Installing /home/msavy/apiman-release/target/git-repos/apiman/tools/i18n/pom.xml to /home/msavy/apiman-release/target/git-repos/apiman/target/nexus-staging/staging/4073c4fbdd610a/io/apiman/apiman-tools-i18n/1.4.0.Final/apiman-tools-i18n
View gist:02aec1de26a6c1b24e15e3214155d1f1
{
"auth": {
"type": "basic",
"config": {
"username": "admin",
"password": "admin123!"
}
}
}
View headless.schema.json
{
"type": "object",
"properties": {
"apis": {
"title": "APIs",
"type": "array",
"items": {
"type": "object",
"title": "API",
"required": ["organizationId", "apiId", "version", "endpoint", "endpointType", "endpointContentType"],
View gist:972bbad26873cea63fb2eed6419488b2
java.lang.RuntimeException: Invalid elasticsearch client type: null
at io.apiman.gateway.engine.es.AbstractESComponent.createEsClientFactory(AbstractESComponent.java:74)
at io.apiman.gateway.engine.es.AbstractESComponent.createClient(AbstractESComponent.java:60)
at io.apiman.gateway.engine.es.AbstractESComponent.getClient(AbstractESComponent.java:51)
at io.apiman.gateway.engine.es.ESCacheStoreComponent.getBinary(ESCacheStoreComponent.java:160)
at io.apiman.gateway.engine.policies.CachingPolicy.doApply(CachingPolicy.java:83)
at io.apiman.gateway.engine.policies.CachingPolicy.doApply(CachingPolicy.java:46)
at io.apiman.gateway.engine.policies.AbstractMappedPolicy.apply(AbstractMappedPolicy.java:70)
at io.apiman.gateway.engine.policy.RequestChain.applyPolicy(RequestChain.java:68)
at io.apiman.gateway.engine.policy.Chain.doApply(Chain.java:148)
View gist:a1b4307fb238a543dfd6af426b42d446
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building apiman-test-common 1.2.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classe
You can’t perform that action at this time.