Skip to content

Instantly share code, notes, and snippets.

@nirvanagit
nirvanagit / Certificate_Gen_Flow.md
Last active December 4, 2019 17:43 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Flow Chart

Setting up root CA.

  1. ROOT KEY
  2. Self Signed ROOT CERTIFICATE

Create a crt/key for a domain

  1. Create Key
  2. Using the key to generate a CSR
@nirvanagit
nirvanagit / server.js
Created October 15, 2017 17:08
server.js file for nuxt.js server
//import express from 'express'
import https from 'https'
import { Nuxt, Builder } from 'nuxt'
import bodyParser from 'body-parser'
import fs from 'fs'
import api from './api'
const key = fs.readFileSync('certificates/private.key');
@nirvanagit
nirvanagit / helm delete error
Created March 15, 2017 01:55
On executing helm delete 'app2-test-app-stage-bf1-testeiddccfllhlegfknfreebbikbfhhbkufuejlhbcrrtvn' it deletes all the releases
-bash-4.2$ helm history 'app2-test-app-stage-bf1-testeiddccfllhlegfknfreebbikbfhhbkufuejlhbcrrtvn'
E0315 01:43:54.575161 5353 portforward.go:209] Unable to create listener: Error listen tcp6 [::1]:6120: bind: cannot assign requested address
REVISION UPDATED STATUS CHART DESCRIPTION
1 Mon Feb 27 22:12:06 2017 DELETED nginx-test-0.2.0 Deletion complete
1 Tue Feb 28 21:44:53 2017 DEPLOYED nginx-user1-0.1.1 Install complete
1 Tue Feb 28 21:45:14 2017 SUPERSEDED nginx-user1-0.1.1 Release "broken-lion" failed: deployments.extensions "ngi...
1 Thu Jan 12 01:27:17 2017 DEPLOYED app1-fe-1.0.656.188080852-165164_200
1 Fri Feb 17 18:58:59 2017 DEPLOYED app1-site-1.0.918.193280979-165164_430
1 Tue Feb
@nirvanagit
nirvanagit / AwesomnessInJS.js
Last active August 29, 2015 14:08
This is a program which tells you that JavaScript is a beautiful language
var biodata = function(firstName, secondName){
//Public members::
this.firstName = firstName;
this.secondName = secondName;
//This is an assignment which takes the present context and assigns it to another variable, in this case that
var that = this;
//private members:
var sex = "Male";
@nirvanagit
nirvanagit / AwesomeJS.js
Created October 26, 2014 06:34
This is a program which tells you that JavaScript is a beautiful language
var biodata = function(firstName, secondName){
//Public members::
this.firstName = firstName;
this.secondName = secondName;
var that = this;
//private members:
var sex = "Male";
var relationshipStatus = "in a relationship";
@nirvanagit
nirvanagit / AwesomeJS
Created October 26, 2014 06:31
This is a program which tells you that JavaScript is a beautiful language
var biodata = function(firstName, secondName){
//Public members::
this.firstName = firstName;
this.secondName = secondName;
var that = this;
//private members:
var sex = "Male";
var relationshipStatus = "in a relationship";