This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.beans.factory.config.BeanPostProcessor; | |
| @Component | |
| public static class BPP implements BeanPostProcessor { | |
| @Override | |
| public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { | |
| System.out.println("#######" + beanName + ": " + bean.getClass().getName()); | |
| return bean; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.gateway; | |
| import ch.qos.logback.classic.PatternLayout; | |
| import ch.qos.logback.classic.spi.ILoggingEvent; | |
| public class MaskingPatternLayout extends PatternLayout { | |
| private String patternsProperty; | |
| public String getPatternsProperty() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.servlet.http.Cookie; | |
| import javax.servlet.http.HttpServletResponse; | |
| import org.aspectj.lang.ProceedingJoinPoint; | |
| import org.aspectj.lang.annotation.Around; | |
| import org.aspectj.lang.annotation.Aspect; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.http.ResponseEntity; | |
| import org.springframework.security.oauth2.common.DefaultExpiringOAuth2RefreshToken; | |
| import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ipcRenderer } from 'electron'; | |
| { | |
| ngOnInit() { | |
| ipcRenderer.on('downloaded', (dl, savedPath) => { | |
| console.log(savedPath); | |
| }) | |
| } | |
| download(): void { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" type="image/x-icon"> | |
| <title>Module</title> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: bash | |
| labels: | |
| app: bash | |
| spec: | |
| containers: | |
| - image: bash | |
| env: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Item implements vscode.QuickPickItem { | |
| label: string; | |
| description?: string | undefined; | |
| detail?: string | undefined; | |
| picked?: boolean | undefined; | |
| alwaysShow?: boolean | undefined; | |
| constructor(label: string) { | |
| this.label = label; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.metrics; | |
| import java.util.Random; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.stereotype.Component; | |
| import org.springframework.web.bind.annotation.RequestMapping; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl get nodes docker-desktop --no-headers -o custom-columns=":metadata.labels['kubernetes\.io/hostname']" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.jo; | |
| import io.fabric8.kubernetes.client.Config; | |
| import io.fabric8.kubernetes.client.ConfigBuilder; | |
| import io.fabric8.kubernetes.client.DefaultKubernetesClient; | |
| import io.fabric8.kubernetes.client.KubernetesClient; | |
| import io.fabric8.kubernetes.client.KubernetesClientException; | |
| public class JoApplication { |