Skip to content

Instantly share code, notes, and snippets.

View pajoma's full-sized avatar
🏠
Working from home ... like everyone else

Patrick M pajoma

🏠
Working from home ... like everyone else
View GitHub Profile
@pajoma
pajoma / designer.html
Last active December 10, 2015 17:08
designer
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.html" rel="import">
<link href="../core-header-panel/core-header-panel.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
@pajoma
pajoma / flink-configuration-configmap.yaml
Last active January 26, 2023 10:27
Adding self-signed certificates in Apache Flink's Taskmanager (on Kubernetes)
@pajoma
pajoma / OpenApiConfiguration_ModuleX.java
Created March 28, 2023 16:21
SpringDocs - Customize GroupedApi in external Module
@Configuration
public class OpenApiConfiguration_ModuleX {
@Bean("ModXApiDefinitionBuilder")
public GroupedOpenApi.Builder adminApiDefinitionBuilder(@Value("${info.app.version:unknown}") String version) {
return GroupedOpenApi.builder()
.group("My API")
.addOpenApiCustomizer(openApi -> {
openApi.info(new Info().title("My API").version(version));
})
@pajoma
pajoma / JsonJacksonConverter.java
Created January 9, 2024 08:15
Deep copy Jakarta Json Structures to Jackson Json Objects
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import jakarta.json.*;
public class JsonJacksonConverter {
@pajoma
pajoma / Readme.md
Created February 17, 2024 19:38
Forward custom headers in nginx ingress

In your ingress of your deployment, add the following annotation:

ingress:
  annotations: 
    enable-underscores-in-headers: "true"
    nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header X-My-Custom-Header  $http_my_custom_header;