Skip to content

Instantly share code, notes, and snippets.

View mittalyashu's full-sized avatar

Yashu Mittal mittalyashu

View GitHub Profile
@mittalyashu
mittalyashu / idGenerator.js
Created August 6, 2020 08:41
Random ID generator
exports.idGenerator = () => {
return (
Math.random()
.toString(32)
.substr(2) +
Math.random()
.toString(32)
.substr(2)
);
};
@mittalyashu
mittalyashu / index.js
Created October 20, 2020 03:37
Centinni plans and subscriptions APIs and db models
const { buildASTSchema } = require("graphql");
const { mergeTypeDefs } = require("@graphql-tools/merge");
// schema
const mutationOutput = require("./mutationOutput");
const book = require("./types/book");
const chapter = require("./types/chapter");
const genre = require("./types/genre");
const blog = require("./types/blog");
# Source: https://gist.github.com/0c56f8b8a820198ada44123fa1bf4b60
################################################################
# How To Apply GitOps For Everything Using Crossplane And Flux #
# https://youtu.be/dunU2ABitMA #
################################################################
# Additional Info:
# - eksctl - How to Create and Manage AWS EKS clusters: https://youtu.be/pNECqaxyewQ
# - Flux CD v2 With GitOps Toolkit - Kubernetes Deployment And Sync Mechanism: https://youtu.be/R6OeIgb7lUI