Skip to content

Instantly share code, notes, and snippets.

👨‍💻

Satyam Zode satyamz

Block or report user

Report or block satyamz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@satyamz
satyamz / golang-tls.md
Created Oct 2, 2018 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
View golang-tls.md

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@satyamz
satyamz / curl.md
Created Aug 23, 2018 — forked from subfuzion/curl.md
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View snapshot-proposal.md

Proposal: Add snapshot & clone support for k8s volumes to Weave Scope

Now that weave scope supports Kubernetes Volumes, it would be great to have snapshot and clone support built in Weave Scope.

Feature:

  • Allow user to take a snapshot for the Kubernetes Volume using Weave Scope.
  • Allow user to restore a snapshot i.e. create a clone from the snapshot using Weave Scope.
  • Allow user to visualize and manage the snapshot & clone resources through Weave Scope.
View Useful commands.md

Uninstall minikube and Docker

minikube stop
minikube delete
docker stop $(docker ps -aq)
sudo rm -r ~/.kube ~/.minikube
sudo rm /usr/local/bin/localkube /usr/local/bin/minikube
systemctl stop '*kubelet*.mount'
sudo rm -rf /etc/kubernetes/
View minikube-install.md

Minikube installation

Download & install kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl
View jenkins-app.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: jenkins-claim
annotations:
volume.beta.kubernetes.io/storage-class: openebs-standard
spec:
accessModes:
- ReadWriteOnce
resources:
@satyamz
satyamz / go-struct.go
Created Jan 5, 2018
Go struct for the json schema
View go-struct.go
type MockData []struct {
TeamID string `json:"team_id"`
ChannelID string `json:"channel_id"`
APIKey string `json:"api_key"`
ClsuterList []string `json:"clsuter_list"`
}
View json-single-schema.json
{
"team_id" : "T8HP5N491",
"channel_id" : "C8JMAKKPG",
"api_key": "YmF0Y2F2ZQ==",
"clsuter_list": [
"botcave-clsuter-one", "botcave-cluster-two" ]
}
View json-schema.json
[
{
"team_id" : "T8HP5N491",
"channel_id" : "C8JMAKKPG",
"api_key": "YmF0Y2F2ZQ==",
"clsuter_list": [
"botcave-clsuter-one", "botcave-cluster-two" ]
},
{
"team_id" : "T8HP5N491",
View Effective_Engineer.md

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

You can’t perform that action at this time.