Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iQiuyu-0821
iQiuyu-0821 / prometheus-operator-kubernetes.yaml
Created May 10, 2023 08:09 — forked from christophlehmann/prometheus-operator-kubernetes.yaml
Example: Monitoring external server with Prometheus Operator
# First install prometheus-operator:
#
# helm install coreos/prometheus-operator --name prometheus-operator
#
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: node-exporter
# Namespace of prometheus operator
@iQiuyu-0821
iQiuyu-0821 / README.md
Created May 8, 2022 03:08 — forked from fcollonval/README.md
JupyterLab custom menu

Customized JupyterLab

This is an example of JupyterLab UI customization.

Test it online: Binder

Requirement: JupyterLab >= 3.3

What is demonstrated?

@iQiuyu-0821
iQiuyu-0821 / EmbeddedKafkaCluster.java
Created July 21, 2019 06:51 — forked from vmarcinko/EmbeddedKafkaCluster.java
Embedded Zookeeper & Kafka cluster
import kafka.server.KafkaConfig;
import kafka.server.KafkaServer;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;