Skip to content

Instantly share code, notes, and snippets.

View santoshshinde2012's full-sized avatar
🏠
Working from home

Santosh Shinde santoshshinde2012

🏠
Working from home
View GitHub Profile

Setup Eslint Prettier and Husky in Node JS Typescript Project

1. ESLint

  • Step 1 - Install the dependencies

    • eslint
      • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
      • npm install --save-dev eslint
    • typescript-eslint/parser
@santoshshinde2012
santoshshinde2012 / essential-methods-of-the-eventemitter.md
Last active June 20, 2021 06:08
Essential methods of the EventEmitter

Essential methods of the EventEmitter

[x] on(event, listener)

// Adds a listener to the end of the listeners array for the specified event.
// By default, event listeners are invoked in the order they are added. The emitter.prependListener() method can be used as an alternative to add the event listener to the beginning of the listeners array.

const EventEmitter = require('events')
@santoshshinde2012
santoshshinde2012 / basic-of-matrix.md
Last active October 28, 2023 17:06
Basic Of Matrix - An open network for secure, decentralized communication

Basic Of Matrix - An open network for secure, decentralized communication

Introduction

  • Making VoIP, IP messaging and IoT as ubiquitous and flexible as email
  • What is Matrix ?
    • Matrix is an open network for secure, decentralised real-time communication
      • Open Network
        • Open Specification
  • Open Implementation
@santoshshinde2012
santoshshinde2012 / System Design.md
Created May 10, 2021 05:56 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@santoshshinde2012
santoshshinde2012 / open-source-sso.md
Created March 15, 2021 06:36 — forked from bmaupin/open-source-sso.md
Comparison of open-source SSO implementations
@santoshshinde2012
santoshshinde2012 / how-to-set-up-stress-free-ssl-on-os-x.md
Created October 9, 2020 11:17 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@santoshshinde2012
santoshshinde2012 / how-to-set-up-stress-free-ssl-on-os-x.md
Created October 9, 2020 11:17 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@santoshshinde2012
santoshshinde2012 / Build Ionic 2 Cordova Apps For Specific Platform Version (config.xml)
Last active October 8, 2019 14:36
Build Ionic 2 Cordova Apps For Specific Platform Version (config.xml)
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team