Skip to content

Instantly share code, notes, and snippets.

View Yogendra0Sharma's full-sized avatar

Yogendra Sharma Yogendra0Sharma

  • Intelizign Engineering Service GmbH, Ex- Siemens Digital Industries Software
  • Nuremberg, Germany
  • X @Fuzzbaba
View GitHub Profile
Yogendra0Sharma /
Created August 26, 2020 13:19 — forked from yoavniran/
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies

Yogendra0Sharma / index.ts
Created August 23, 2020 11:20
Node-SOAP Failed
import * as soap from "soap";
var platformPassword = 'PlatformAPIPassword';
var platformUsername = 'PlatformAPIUser';
var url = "";
var requestArgs: any = null;
var options: any = {};
requestArgs = {
ApiKey: "667271d9-1b1b-4056-8c3e-4de044e9e57e",
ProjectID: "b1bdb9f4-d92f-4a0c-a469-b163d874df31"
Yogendra0Sharma / resume-2015Dec
Created July 15, 2019 07:20 — forked from kchenthilrajan/resume
Chenthil's Full Stack Developer Resume
Chenthil Rajan 318 243 1429
• 10+ years of experience in Software Development including Analysis, Design, Development
and Testing of various applications in Java/J2EE environment.
• Experience in Functional and Object Oriented Programming style of Javascript.
• Clear understanding of prototype chaining, closure and scope with respect to Javascript.
• Got good exposure to UI design using Adobe Photoshop, Adobe Illustrator, Performed slicing
Yogendra0Sharma / gist:1965791177e2d219bd70cba8226b3261
Created May 7, 2018 06:08 — forked from luckyyang/gist:42a91d92953c85753c98
Mongodb 3.0 Replica Set Setup with Docker Notes
this post talks about 3 Nodes,Mongodb 2.6.5. In order to use mongo 3.0, a few changes has been made. Assume using root
1. First we need 2 servers with docker installed
1.1 recommend use Ubuntu 14.04 on aliyun, then install daocloud for docker installation and monitoring
curl -sSL | sh
1.2 install daocloud monitoring program
Yogendra0Sharma / Makefile
Created May 7, 2018 06:07 — forked from checkaayush/Makefile
Makefile to setup MongoDB Replica Set for development
# Setup local MongoDB Replica Set for development.
DB_ROOT ?= /tmp
DB1_PATH ?= ${DB_ROOT}/db1
DB2_PATH ?= ${DB_ROOT}/db2
DB3_PATH ?= ${DB_ROOT}/db3
DB1_PORT ?= 30000
DB2_PORT ?= 40000
DB3_PORT ?= 50000
Yogendra0Sharma /
Created April 11, 2018 11:21 — forked from gunjanpatel/
amazon ec2 LAMP and FTP installation and setup
Yogendra0Sharma /
Created February 15, 2018 07:34 — forked from tmpvar/
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module
Yogendra0Sharma /
Created February 15, 2018 06:24 — forked from agilecreativity/
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set "Your Name"
npm set ""
npm set ""

npm adduser

Yogendra0Sharma /
Created January 29, 2018 13:03 — forked from vmosoti/
Installing Redis, Hiredis on Ubuntu 14.04
echo "--------------------------------------------------------------------------------------------"
echo "Installing Predis on Ubuntu 16.04"
echo "Read more:"
echo "Author: Ralf Rottmann | @ralf |"
echo "--------------------------------------------------------------------------------------------"
echo "Checking prerequisites..."
echo "Git available?"
[ ! -s /usr/bin/git ] && sudo apt-get -q -y install git || echo "Git already installed."
Yogendra0Sharma /
Created January 29, 2018 09:19 — forked from nk952777/
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.