Skip to content

Instantly share code, notes, and snippets.

View girishramnani's full-sized avatar
🎯
Focusing

Girish girishramnani

🎯
Focusing
View GitHub Profile
"zookeeper": {
"description": "Configuration of the ZooKeeper cluster.",
"type": "object",
"required": [
"replicas",
"storage"
],
"properties": {
"config": {
"description": "The ZooKeeper broker config. Properties with the following prefixes cannot be set: server., dataDir, dataLogDir, clientPort, authProvider, quorum.auth, requireClientAuthScheme, snapshot.trust.empty, standaloneEnabled, reconfigEnabled, 4lw.commands.whitelist, secureClientPort, ssl., serverCnxnFactory, sslQuorum (with the exception of: ssl.protocol, ssl.quorum.protocol, ssl.enabledProtocols, ssl.quorum.enabledProtocols, ssl.ciphersuites, ssl.quorum.ciphersuites, ssl.hostnameVerification, ssl.quorum.hostnameVerification).",
@girishramnani
girishramnani / crd.json
Created May 26, 2021 08:30
CRD of servicebinding
{
"kind": "CustomResourceDefinition",
"apiVersion": "apiextensions.k8s.io/v1",
"metadata": {
"name": "servicebindings.operators.coreos.com",
"selfLink": "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/servicebindings.operators.coreos.com",
"uid": "8d92fd7d-e982-4ad5-9805-59fbdcdf02b1",
"resourceVersion": "39711",
"generation": 1,
"creationTimestamp": "2020-11-25T09:00:01Z",
@girishramnani
girishramnani / openapi.json
Created May 24, 2021 12:13
openapi for the whole cluster
This file has been truncated, but you can view the full file.
// 20210524171832
// https://console-openshift-console.apps.ci-ln-c0yckc2-f76d1.origin-ci-int-gce.dev.openshift.com/api/kubernetes/openapi/v2
{
"swagger": "2.0",
"info": {
"title": "Kubernetes",
"version": "v1.21.0"
},
"paths": {
@girishramnani
girishramnani / openapi.json
Last active May 24, 2021 12:14
openapi spec for the whole cluster
{
"swagger": "2.0",
"info": {
"title": "Kubernetes",
"version": "v1.21.0"
},
"paths": {
"/.well-known/openid-configuration/": {
"get": {
"description": "get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'",
@girishramnani
girishramnani / random.go
Created August 12, 2020 15:25
Random string generation
import (
"crypto/rand"
)
func GenerateRandomString(n int) string {
b := make([]rune, n)
letterRunes := []rune("abcdefghijklmnopqrstuvwxyz")
for i := range b {
// this error is ignored because it fails only when the 2nd arg of Int() is less then 0
// which wont happen
package main
type UserAction struct {
UserID string `dynamo:"ID,hash"`
Time time.Time `dynamo:",range"`
Seq int64 `dynamo:"Seq,range"`
UUID string
embeddedWithKeys
}
package main
import (
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"fmt"
)
type Tpl struct {
package main
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"fmt"
)
pragma solidity ^0.4.15;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
pragma solidity ^0.4.11;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.