Skip to content

Instantly share code, notes, and snippets.

View stevekuznetsov's full-sized avatar

Steve Kuznetsov stevekuznetsov

  • Microsoft
  • United States
  • 01:15 (UTC -06:00)
View GitHub Profile
@stevekuznetsov
stevekuznetsov / output.txt
Last active October 2, 2015 21:44
hack/test-cmd verbose profile
$ VERBOSE=true hack/test-cmd.sh
openshift: openshift v1.0.6-337-ge179b38 kubernetes v1.1.0-alpha.1-653-g86b4e77
[INFO] Create certificates for the OpenShift server to /tmp/openshift-cmd/Mbh6/openshift.local.config/master
Generated new key pair as /tmp/openshift-cmd/Mbh6/openshift.local.config/master/serviceaccounts.public.key and /tmp/openshift-cmd/Mbh6/openshift.local.config/master/serviceaccounts.private.key
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/Mbh6/openshift.local.config/node-127.0.0.1
Wrote master config to: /tmp/openshift-cmd/Mbh6/openshift.local.config/master/master-config.yaml
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/Mbh6/openshift.local.config/node-127.0.0.1
@stevekuznetsov
stevekuznetsov / output.txt
Created October 2, 2015 19:32
hack/test-cmd.sh profile output
$ PROFILE=true hack/test-cmd.sh
openshift: openshift v1.0.6-318-gf934c42-dirty kubernetes v1.1.0-alpha.1-653-g86b4e77
[INFO] Create certificates for the OpenShift server to /tmp/openshift-cmd/So6X/openshift.local.config/master
2015-10-02 15:27:28.125314 I | profile: cpu profiling enabled, cpu.pprof
2015-10-02 15:27:28.160002 I | profile: cpu profiling enabled, cpu.pprof
Generated new key pair as /tmp/openshift-cmd/So6X/openshift.local.config/master/serviceaccounts.public.key and /tmp/openshift-cmd/So6X/openshift.local.config/master/serviceaccounts.private.key
2015-10-02 15:27:32.814164 I | profile: cpu profiling enabled, cpu.pprof
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/So6X/openshift.local.config/node-127.0.0.1
2015-10-02 15:27:34.172681 I | profile: cpu profiling enabled, cpu.pprof
@stevekuznetsov
stevekuznetsov / output.txt
Created October 2, 2015 19:27
hack/test-cmd.sh output
$ hack/test-cmd.sh
openshift: openshift v1.0.6-318-gf934c42-dirty kubernetes v1.1.0-alpha.1-653-g86b4e77
[INFO] Create certificates for the OpenShift server to /tmp/openshift-cmd/PnHp/openshift.local.config/master
Generated new key pair as /tmp/openshift-cmd/PnHp/openshift.local.config/master/serviceaccounts.public.key and /tmp/openshift-cmd/PnHp/openshift.local.config/master/serviceaccounts.private.key
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/PnHp/openshift.local.config/node-127.0.0.1
Wrote master config to: /tmp/openshift-cmd/PnHp/openshift.local.config/master/master-config.yaml
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/PnHp/openshift.local.config/node-127.0.0.1
@stevekuznetsov
stevekuznetsov / output.txt
Created October 2, 2015 19:00
test-cmd output new
$ hack/test-cmd.sh
openshift: openshift v1.0.6-318-gf934c42-dirty kubernetes v1.1.0-alpha.1-653-g86b4e77
[INFO] Create certificates for the OpenShift server to /tmp/openshift-cmd/moot/openshift.local.config/master
2015-10-02 14:53:58.778894 I | profile: cpu profiling enabled, cpu.pprof
2015-10-02 14:53:58.814768 I | profile: cpu profiling enabled, cpu.pprof
Generated new key pair as /tmp/openshift-cmd/moot/openshift.local.config/master/serviceaccounts.public.key and /tmp/openshift-cmd/moot/openshift.local.config/master/serviceaccounts.private.key
2015-10-02 14:54:03.587758 I | profile: cpu profiling enabled, cpu.pprof
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/moot/openshift.local.config/node-127.0.0.1
2015-10-02 14:54:05.595307 I | profile: cpu profiling enabled, cpu.pprof
@stevekuznetsov
stevekuznetsov / output,txt
Created October 1, 2015 17:11
test-cmd out
$ hack/test-cmd.sh
openshift: openshift v1.0.6-312-g8f164fa-dirty kubernetes v1.1.0-alpha.1-653-g86b4e77
[INFO] Create certificates for the OpenShift server to /tmp/openshift-cmd/mgI3/openshift.local.config/master
2015-10-01 13:04:30.442505 I | profile: cpu profiling enabled, cpu.pprof
2015-10-01 13:04:30.477544 I | profile: cpu profiling enabled, cpu.pprof
Generated new key pair as /tmp/openshift-cmd/mgI3/openshift.local.config/master/serviceaccounts.public.key and /tmp/openshift-cmd/mgI3/openshift.local.config/master/serviceaccounts.private.key
2015-10-01 13:04:34.054402 I | profile: cpu profiling enabled, cpu.pprof
Generating node credentials ...
Created node config for 127.0.0.1 in /tmp/openshift-cmd/mgI3/openshift.local.config/node-127.0.0.1
2015-10-01 13:04:36.406517 I | profile: cpu profiling enabled, cpu.pprof
@stevekuznetsov
stevekuznetsov / output.txt
Created October 1, 2015 12:45
go vet w/ godep & output
$ GOPATH=$PWD/_output/local/go:$GOPATH/src/github.com/openshift/origin/Godeps/_workspace/:$GOPATH go tool vet pkg/
pkg/api/graph/graph.go:85: github.com/gonum/graph/concrete.Edge composite literal uses unkeyed fields
pkg/api/graph/graph.go:653: arg edgeKind for printf verb %d of wrong type: string
pkg/auth/ldaputil/query_test.go:188: possible formatting directive in Error call
pkg/authorization/cache/clusterpolicy.go:27: NewReadOnlyClusterPolicyCache returns Lock by value: cache.readOnlyClusterPolicyCache contains k8s.io/kubernetes/pkg/client/cache.Reflector contains sync.RWMutex
pkg/authorization/cache/clusterpolicy.go:106: newReadOnlyClusterPolicies passes Lock by value: cache.readOnlyAuthorizationCache contains cache.readOnlyPolicyCache contains k8s.io/kubernetes/pkg/client/cache.Reflector contains sync.RWMutex
pkg/authorization/cache/clusterpolicybinding.go:27: NewReadOnlyClusterPolicyBindingCache returns Lock by value: cache.readOnlyClusterPolicyBindingCache contains k8s.io/kubernetes/pkg/client/cache.Re
@stevekuznetsov
stevekuznetsov / command.sh
Created September 29, 2015 14:21
bash woes
$ wait_for_command "oc get imagestream openldap --template='{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}' | grep latest" $((60*TIME_SEC))
test/extended/authentication.sh: line 63: tags: unbound variable
$ wait_for_command 'oc get imagestream openldap --template="{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}" | grep latest' $((60*TIME_SEC))
test/extended/../../hack/util.sh: line 198: tags: unbound variable
$ wait_for_command 'tags= && event= && oc get imagestream openldap --template="{{with $tags := .status.tags}}{{with $event := index $tags 0}}{{$event.tag}}{{end}}{{end}}" | grep latest' $((60*TIME_SEC))
error: error parsing template {{with := .status.tags}}{{with := index 0}}{{.tag}}{{end}}{{end}}, template: output:1: unexpected ":=" in with
@stevekuznetsov
stevekuznetsov / files.txt
Created September 22, 2015 17:39
find_files output for skuznets f21 machine
./assets/assets.go
./assets/doc.go
./cmd/doc.go
./cmd/dockerregistry/doc.go
./cmd/dockerregistry/main.go
./cmd/genbashcomp/gen_openshift_bash_comp.go
./cmd/genconversion/conversion.go
./cmd/gendeepcopy/deep_copy.go
./cmd/gendocs/gen_openshift_docs.go
./cmd/gitserver/gitserver.go
@stevekuznetsov
stevekuznetsov / readme.md
Created September 17, 2015 14:29
ldap api refactor

Previous Objects:

Internal:

type LDAPPasswordIdentityProvider struct {
	api.TypeMeta
	// URL is an RFC 2255 URL which specifies the LDAP search parameters to use. The syntax of the URL is
	//    ldap://host:port/basedn?attribute?scope?filter
	URL string
	// BindDN is an optional DN to bind with during the search phase.
	BindDN string
@stevekuznetsov
stevekuznetsov / proposal.md
Last active August 29, 2015 14:27
Lab Software Propsoal

AFM Controller Software Proposal

Background

The lab requesting this software invesitgates molecular physics using atomic force microscopy. The lab currently has a software package for controlling the atomic force microscopes and taking data, but this software package was written by non-developers over twenty years ago and is no longer a good solution.

The lab requests a new software package in order to be able to make the most out of their instruments. As the software has developed over the years, features have been added in order to more fully automate the experimental process. The current software supports semi-automatic data acquisition but adding features is a nightmare.

The entire focus of the program is to control a National Instruments data acquisition device, using current experimental state (positional coordinates, etc) to create forcing functions for the microscope. The current iteration of the software hard-codes the most common forcing modes. My intent is to create a software platform that