Skip to content

Instantly share code, notes, and snippets.

View stevekuznetsov's full-sized avatar

Steve Kuznetsov stevekuznetsov

  • Microsoft
  • United States
  • 02:24 (UTC -07:00)
View GitHub Profile
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "openldap-server",
"creationTimestamp": null,
"labels": {
"name": "openldap-server"
}
},
@stevekuznetsov
stevekuznetsov / output.sh
Created August 19, 2015 17:15
old image
$ oc create -f test/extended/fixtures/ldap/ldapserver-imagestream.json && oc get imagestreamtag openldap:latest
imagestream "openldap" created
Error from server: imageStreamTag "openldap:latest" not found
$ oc get imagestreamtag openldap:latest
NAME DOCKER REF UPDATED IMAGENAME
openldap:latest openshift/openldap-2441-centos7@sha256:7f83fe368b8462bb53a8229bee0e7ba669012a3d2bc431714880b13f9e5e1f1a 292 years ago sha256:7f83fe368b8462bb53a8229bee0e7ba669012a3d2bc431714880b13f9e5e1f1a
@stevekuznetsov
stevekuznetsov / output.txt
Created August 19, 2015 17:44
go vet results 8/19 1:45pm
FAILURE: go vet -printf had errors:
./pkg/build/generator/generator.go:205: arg bc.Status.LastVersion for printf verb %s of wrong type: int
SUCCESS: go vet -methods had no errors
SUCCESS: go vet -structtags had no errors
FAILURE: go vet -composites had errors:
./pkg/auth/oauth/external/handler_test.go:20: github.com/openshift/origin/pkg/auth/server/csrf.FakeCSRF composite literal uses unkeyed fields
./pkg/auth/oauth/external/handler_test.go:41: github.com/openshift/origin/pkg/auth/server/csrf.FakeCSRF composite literal uses unkeyed fields
./pkg/auth/oauth/external/handler_test.go:68: github.com/openshift/origin/pkg/auth/server/csrf.FakeCSRF composite literal uses unkeyed fields
./pkg/auth/oauth/external/handler_test.go:97: github.com/openshift/origin/pkg/auth/server/csrf.FakeCSRF composite literal uses unkeyed fields
./pkg/auth/oauth/external/handler_test.go:126: github.com/openshift/origin/pkg/auth/server/csrf.FakeCSRF composite literal uses unkeyed fields
@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

@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 / 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 / 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 / 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 / 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 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