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 | |
| # The name of the project | |
| name='aws-account-operator' | |
| # The path to be used in the Go /src/ dir | |
| project_source_path="github.com/openshift/${name}" | |
| # Set Go version you want to use | |
| go_version='1.13.1' |
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 | |
| from subprocess import Popen, PIPE | |
| import json | |
| def get_data_from_hive(): | |
| # Get a list of all accounts | |
| acct_cmd = [ | |
| "oc", | |
| "get", |
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 | |
| oc get nodes -l type=compute -o=jsonpath='{range .items[*]}{.metadata.labels.hostname}{"\n"}{end}' |
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
| # Without an argument, prints the current gopath | |
| # With a integer argument, prints the directory at the index of a multi-directory GOPATH | |
| gopath () | |
| { | |
| if [ -z "$GOPATH" ]; then | |
| echo "GOPATH not set..."; | |
| exit 1; | |
| fi; | |
| local gopath="${GOPATH}"; |
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 python2 | |
| # A script to generate a report of Elasticsearch index usage | |
| # (from _cat/indices?v&bytes=b) by prefix for a set of known | |
| # date suffixes. | |
| # | |
| # E.g. | |
| # $ curl -X GET http://localhost:9200/_cat/indices?v\&bytes=b -o indices.lis | |
| # $ ./sum-es-indices.py indices.lis | |
| # |
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
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOHCYwjPmYsW9EKpuEQkMxolLijxMfqbXAT//34sGox |
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 main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| // "time" | |
| // "k8s.io/client-go/rest" |
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 main | |
| import ( | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/kubernetes" | |
| "k8s.io/client-go/rest" |
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
| language_DWARF | |
| [OBJECT:LANGUAGE] | |
| [TRANSLATION:DWARF] | |
| [T_WORD:ABBEY:kulet] | |
| [T_WORD:ACE:alak] | |
| [T_WORD:ACT:bidok] | |
| [T_WORD:AFTER:nicol] | |
| [T_WORD:AGE:anam] |
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
| # A snippet for instantiating an OpenShift dynamic client | |
| # for working with the OpenShist Rest API | |
| # | |
| # Requires: | |
| # OpenShift-RestClient-Python - https://github.com/openshift/openshift-restclient-python | |
| # Kubernetes Python Client - https://github.com/kubernetes-client/python | |
| # | |
| # `pip3 install --user kubernetes && pip3 install --user openshift` | |
| # | |
| # import kubernetes |