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
#!/usr/bin/env bash | |
set -e | |
CONTEXT="$1" | |
if [[ -z ${CONTEXT} ]]; then | |
echo "Usage: $0 KUBE-CONTEXT" | |
exit 1 | |
fi |
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 json | |
json_lines = [json.loads(line) for line in open("sumo.json", "r").readlines()] | |
for line in json_lines: | |
host = line.get("host") | |
if host is None: | |
print "Line missing host key" | |
if host == "": | |
print "Line has empty host key" |
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
func main() { | |
log := zap.New(zap.NewTextEncoder(), zap.AddCaller(), zap.DebugLevel) | |
lib := dns.NewLookupLib("127.0.0.1:53") | |
srv := "_talos._https.example.org" | |
b := lb.New(&lb.Config{Dns: lib, Strategy: random.RandomStrategy}, srv) | |
for { | |
time.Sleep(time.Second) | |
a, err := b.Next() |
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
#!/usr/bin/env python | |
import logging | |
import sys | |
import requests | |
def main(): | |
logging.basicConfig(level=logging.DEBUG) |
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.spotify.wiggum; | |
import com.google.common.net.HostAndPort; | |
import com.spotify.helios.testing.TemporaryJob; | |
import com.spotify.helios.testing.TemporaryJobs; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; |
NewerOlder