A Pen by Trevan Hetzel on CodePen.
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 { |
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
|
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
vscode.commands.executeCommand('workbench.action.openSettings', `@ext:sandipchitale.extension.id`); |
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 { LaunchOptions } from 'playwright'; | |
export const browserOptions: LaunchOptions = { | |
headless: false, | |
slowMo: 0, | |
args: ['--use-fake-ui-for-media-stream', '--use-fake-device-for-media-stream'], | |
firefoxUserPrefs: { | |
'media.navigator.streams.fake': true, | |
'media.navigator.permission.disabled': true, | |
}, | |
}; |
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
"vs-kubernetes": { | |
"vs-kubernetes.minikube-path": "C:\\Users\\schitale\\.vs-kubernetes\\tools\\minikube\\windows-amd64\\minikube.exe", | |
"disable-linters": [ | |
"resource-limits" | |
], | |
"vs-kubernetes.knownKubeconfigs": [ | |
"c:\\Users\\schitale\\.kube\\kind-config-kind", | |
"c:\\Users\\schitale\\.kube\\config", | |
"c:\\Users\\schitale\\.kube\\kind-config-infoarchive", |
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
try { | |
client = new DefaultKubernetesClient(config); | |
// client.nodes().list().getItems().forEach( | |
// n -> System.out.println(n.getKind() + "\t\t" + n.getMetadata().getName())); | |
// client.namespaces().list().getItems().forEach( | |
// n -> System.out.println(n.getKind() + "\t" + n.getMetadata().getName())); | |
client.pods().inAnyNamespace().list().getItems().forEach( | |
n -> System.out.println("Namespace\t" + n.getMetadata().getNamespace() + "\t" + n.getKind() + "\t" + n.getMetadata().getName())); | |
client.pods().watch(new Watcher() { |
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
buildscript { | |
repositories { | |
mavenCentral(); | |
} | |
dependencies { | |
classpath group: 'io.fabric8', name: 'kubernetes-client', version: '4.10.3' | |
} | |
} |
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
/** | |
* Copy and paste the code below on your browser console | |
* It will log the stable changes and how long it took to become stable | |
*/ | |
let currentStatus = undefined; | |
let root = $('ia-infoarchive-app'); // Change this selector to the component that you'll be watching (Usually the root component) | |
let startTime = new Date(); | |
let stabilityChecker = setInterval(() => { | |
let newStatus = window.getAngularTestability(root).isStable(); | |
if (currentStatus !== newStatus) { |
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
./=perforce://%P4PORT%:////depot/InfoArchive/IA/Main/Clients |