git clone https://gist.github.com/aslafy-z/4be51cb23e7a40ee5e288ab2ad85f1a6
cd 4be51cb23e7a40ee5e288ab2ad85f1a6
sh run.sh
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains 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
{ | |
"streams": [ | |
{ | |
"stream": { | |
"container": "controller", | |
"container_id": "cec7f4ad43cf5d883a04d6a612e65fb6429ea671b7757ef0643b74a20511a666", | |
"fluentd_host": "logging-operator-logging-fluentd-1", | |
"host": "ci01-a3np-ingress-wan-a-vmss000000", | |
"namespace": "nginx-ingress-wan", | |
"pod": "nginx-ingress-wan-controller-86656594b5-bd7qb", |
This file contains 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
# Displays the information of the next window to be left-clicked | |
import time | |
import datetime | |
nsClientWindowName = "Netskope Client" | |
username = "" | |
password = "" | |
def window_wait_loose_focus(title, timeOut=0): | |
waited = 0 |
This file contains 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
#!/usr/bin/env bash | |
function _retry () ( | |
if [ $# -lt 1 ]; then | |
echo >&2 "usage: $0 <command> [max] [min] [step] [timeout]" | |
return | |
fi | |
cmd=$1 | |
max=${2:-10} |
This file contains 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
#!/usr/bin/env bash | |
# Generate a CSR for a list of subject alt names | |
set -e -o pipefail | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <common name> [subject alt names]" | |
exit 1 | |
fi |
This file contains 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
#!/bin/sh | |
# | |
# This script should prevent the following suspend errors | |
# which freezes the Dell Inspiron laptop. | |
# | |
# Put it in /usr/lib/systemd/system-sleep/xhci.sh | |
# | |
# The PCI 00:14.0 device is the usb xhci controller. | |
# | |
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16 |
This file contains 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
- hosts: localhost | |
vars: | |
supernet: "10.3.0.0/22" | |
subnet_cidr: 24 | |
subnet_size: "{{ supernet | ipsubnet(subnet_cidr) }}" | |
subnet_list: [] | |
tasks: | |
- set_fact: | |
subnet_list: "{{ subnet_list }} + ['{{ ip | ipsubnet(subnet_cidr, item) }}']" | |
with_sequence: "0-{{ subnet_size | int-1}}" |
This file contains 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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: private | |
spec: | |
type: ExternalName | |
externalName: private.example.corp | |
ports: | |
- port: 443 | |
protocol: TCP |
NewerOlder