Skip to content

Instantly share code, notes, and snippets.

View cweibel's full-sized avatar

Chris Weibel cweibel

View GitHub Profile
@cweibel
cweibel / scrape.py
Created November 15, 2021 18:17
Python script to scrape the CF CLI
#!/usr/bin/env python3
# Welcome! This script uses the CF API to look for a specific set of ENV variables which an app has
# been deployed with. If a hit is found, the org name, space name and app name are retrieved along
# with the list of matching ENV variables.
#
# This script requires 3 arguments in order:
# - system_domain - Example: 172.18.0.150.nip.io
# - cf client id - Example: cf_smoke_tests
# - cf client secret - Example: nice_try_redacted_4u
@cweibel
cweibel / kubecf1.values.yaml
Created February 13, 2020 18:05
RKE example KubeCF values.yaml file
system_domain: 10.128.63.10.netip.cc
# Set or override job properties. The first level of the map is the instance group name. The second
# level of the map is the job name. E.g.:
# properties:
# adapter:
# adapter:
# scalablesyslog:
# adapter:
# logs:
This file has been truncated, but you can view the full file.
2020-02-11T17:23:34.220Z INFO cmd/kubeconfig.go:16 Using in-cluster kube config
2020-02-11T17:23:34.220Z INFO cmd/kubeconfig.go:20 Checking kube config
2020-02-11T17:23:34.254Z INFO [email protected]/command.go:826 Starting cf-operator v2.0.0-dirty-0.g0142d1e9 with namespace kubecf1
2020-02-11T17:23:34.254Z INFO [email protected]/command.go:826 cf-operator docker image: cfcontainerization/cf-operator:v2.0.0-0.g0142d1e9
2020-02-11T17:23:34.254Z INFO cmd/apply_crd.go:19 Applying CRDs...
2020-02-11T17:23:34.714Z INFO internal/root.go:100 Registering Components
2020-02-11T17:23:34.715Z INFO controllers/controllers.go:92 Setting up webhook server on 10.245.0.87:2999
2020-02-11T17:23:34.715Z INFO controllers/controllers.go:94 Setting a cf-operator namespace label
2020-02-11T17:23:34.728Z INFO controllers/controllers.go:110 Setting up validator for BOSHDeployment
2020-02-11T17:23:34.728Z INFO boshdeployment-validator boshdeployment/validating_webhook.go:33 Creating a validator for BOSHDeployment
@cweibel
cweibel / get_pods_kubecf_eirini_output
Created January 29, 2020 22:11
vSphere KubeCF unable to pull images back from bits service
kubectl -n kubecf-eirini get pods Chriss-MacBook-Pro.local: Wed Jan 29 17:05:34 2020
NAME READY STATUS RESTARTS AGE
cf-env-pickles-d51729e679-0 0/1 ImagePullBackOff 0 34m
@cweibel
cweibel / kitematic.md
Last active November 9, 2017 01:30
Docker Your Database Presentation Notes

Installing Docker Toolbox

Start out by going to https://kitematic.com and download the “Docker Toolbox”

This will install VirtualBox if you don’t already have it.

While on the webpage go ahead and create a new Docker ID.

Postgres

This file has been truncated, but you can view the full file.
diff --git a/jobs/acceptance-tests/spec b/jobs/acceptance-tests/spec
index 247aa2c..57799d5 100644
--- a/jobs/acceptance-tests/spec
+++ b/jobs/acceptance-tests/spec
@@ -4,10 +4,9 @@ name: acceptance-tests
description: "The acceptance tests errand can be configured to run full acceptance test suite against a specific Cloud Foundry API endpoint. Consider running smoke tests errand for a smaller set of tests."
packages:
- - golang1.4
+ - golang1.6

Keybase proof

I hereby claim:

  • I am cweibel on github.
  • I am cweibel (https://keybase.io/cweibel) on keybase.
  • I have a public key whose fingerprint is E798 857F D749 4AF8 0C89 E84E 6890 36E2 67B9 227D

To claim this, I am signing this object:

# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@cweibel
cweibel / gist:a65ecaad5e6d71b08701
Created August 11, 2015 16:10
bosh status target bosh-lite
Errand `acceptance_tests' completed successfully (exit code 0)
502447786@cf-sb-adm001:~$ bosh status
Config
/home/502447786/.bosh_config
Director
Name Bosh Lite Director
URL https://10.202.75.105:25555
Version 1.2922.0 (00000000)
User admin