Documentation for creating/managing repositories and images for the STINGAR organization on Docker Hub.
NOTE: This should ONLY be done this way until we get some automation.
| #!/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", |
| #!/usr/bin/env bash | |
| oc get nodes -l type=compute -o=jsonpath='{range .items[*]}{.metadata.labels.hostname}{"\n"}{end}' |
| # 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}"; |
| #!/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 | |
| # |
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMOHCYwjPmYsW9EKpuEQkMxolLijxMfqbXAT//34sGox |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| // "time" | |
| // "k8s.io/client-go/rest" |
| 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" |
| 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] |
| # 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 |