Skip to content

Instantly share code, notes, and snippets.

Copyright 2020, Cisco Systems, Inc. or its affiliates
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@nikileshsa
nikileshsa / service_instance.yaml
Created July 21, 2020 18:25
AWS MSK Service instance for release demo example
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
name: awsmsk
namespace: test-aws-1
spec:
clusterServiceClassExternalName: awsmsk
clusterServicePlanExternalName: production
parameters:
Subnets: subnet-0ec5a2d2ab30fd7ab,subnet-0fa58f3769fac69c6
import java.util.HashSet;
import java.util.Set;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocketFactory;
import redis.clients.jedis.HostAndPort;
@nikileshsa
nikileshsa / gist:a7dbed6c2e25e846607bb85089eac646
Created April 1, 2020 15:41
cluster creation fails - redis
+ echo Starting create-cluster job
Starting create-cluster job
+ redis-cli -h wizened-meerkat-redis-cluster cluster info
+ grep -q cluster_state:ok
+ apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2410 B]
@nikileshsa
nikileshsa / gist:9ae2a0c34bed4ae6f2f0f5115834e30f
Created April 1, 2020 15:36
good log - redis create cluster job
+ echo Starting create-cluster job
Starting create-cluster job
+ redis-cli -h elder-possum-redis-cluster cluster info
+ grep -q cluster_state:ok
+ apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2410 B]
"RedisCache": {
"Type": "AWS::ElastiCache::ReplicationGroup",
"Properties": {
"ReplicationGroupId": {
"Fn::Join": ["-", [ {
"Ref": "EnvType"
}, {
"Ref": "EnvVersion"
}
]]
kubectl patch pvc db-pv-claim -p '{"metadata":{"finalizers":null}}'
kubectl patch pod db-74755f6698-8td72 -p '{"metadata":{"finalizers":null}}'
https://github.com/kubernetes/kubernetes/issues/69697
{"level":"info","ts":1556388357.4909463,"caller":"flags/service.go:113","msg":"Mounting metrics handler on admin server","route":"/metrics"}
{"level":"info","ts":1556388357.4920745,"caller":"flags/admin.go:108","msg":"Mounting health check on admin server","route":"/"}
{"level":"info","ts":1556388357.492702,"caller":"flags/admin.go:114","msg":"Starting admin HTTP server","http-port":14269}
{"level":"info","ts":1556388357.4927375,"caller":"flags/admin.go:100","msg":"Admin server started","http-port":14269,"health-status":"unavailable"}
{"level":"info","ts":1556388357.493401,"caller":"memory/factory.go:55","msg":"Memory storage initialized","configuration":{"MaxTraces":0}}
{"level":"info","ts":1556388357.5017617,"caller":"grpc/builder.go:81","msg":"Agent requested insecure grpc connection to collector(s)"}
{"level":"info","ts":1556388357.5026276,"caller":"all-in-one/main.go:188","msg":"Starting agent"}
WARNING: 2019/04/27 18:05:57 grpc: addrConn.createTransport failed to connect to {127.0.0.1:14250 0 <nil>}. E
/usr/local/var/lib/softhsm
@nikileshsa
nikileshsa / README.md
Created March 17, 2019 17:01 — forked from Jakuje/README.md
OpenSC test Sign, Verify, Encipher and Decipher from commandline with OpenSSL CLI
export PIN=111111
export SIGN_KEY=11
export ENC_KEY=55

Sign/Verify using private key/certificate

  • Create a data to sign

    echo "data to sign (max 100 bytes)" > data