Skip to content

Instantly share code, notes, and snippets.

View satyamz's full-sized avatar
👨‍💻

Satyam Zode satyamz

👨‍💻
View GitHub Profile
@satyamz
satyamz / all_aws_managed_policies.json
Created August 13, 2021 05:28 — forked from gene1wood/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
This file has been truncated, but you can view the full file.
{
"APIGatewayServiceRolePolicy": {
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy",
"AttachmentCount": 0,
"CreateDate": "2019-10-22T18:22:01+00:00",
"DefaultVersionId": "v6",
"Document": {
"Statement": [
{
"Action": [
@satyamz
satyamz / postgres-cheatsheet.md
Created July 29, 2021 17:09 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@satyamz
satyamz / gmail-github-filters.md
Created June 29, 2021 05:24 — forked from ldez/gmail-github-filters.md
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:(notifications@github.com) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

Keybase proof

I hereby claim:

  • I am satyamz on github.
  • I am satyamz (https://keybase.io/satyamz) on keybase.
  • I have a public key ASAW8oXtyrM5oKP3E5AQEMmorU27QmvK1fmheixEmARFvAo

To claim this, I am signing this object:

@satyamz
satyamz / golang-tls.md
Created October 2, 2018 01:27 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

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 August 23, 2018 11:25 — forked from subfuzion/curl.md
curl POST examples

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.

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.
@satyamz
satyamz / Useful commands.md
Created July 13, 2018 07:23 — forked from chandankumar4/Useful commands.md
Minikube and Docker

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/
@satyamz
satyamz / minikube-install.md
Last active March 7, 2018 16:29
Install Minikube

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