Skip to content

Instantly share code, notes, and snippets.

View Yogendra0Sharma's full-sized avatar
🎯
Focusing

Yogendra Sharma Yogendra0Sharma

🎯
Focusing
  • Intelizign Engineering Service GmbH, Ex- Siemens Digital Industries Software
  • Nuremberg, Germany
  • X @Fuzzbaba
View GitHub Profile
@Yogendra0Sharma
Yogendra0Sharma / ultimate-ut-cheat-sheet.md
Created August 26, 2020 13:19 — forked from yoavniran/ultimate-ut-cheat-sheet.md
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
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 = "https://docs.mendix.com/apidocs-mxsdk/apidocs/attachments/9535497/19398865.wsdl";
var requestArgs: any = null;
var options: any = {};
requestArgs = {
ApiKey: "667271d9-1b1b-4056-8c3e-4de044e9e57e",
ProjectID: "b1bdb9f4-d92f-4a0c-a469-b163d874df31"
@Yogendra0Sharma
Yogendra0Sharma / resume-2015Dec
Created July 15, 2019 07:20 — forked from kchenthilrajan/resume
Chenthil's Full Stack Developer Resume
Chenthil Rajan 318 243 1429
kchenthilrajan@gmail.com
www.github.com/kchenthilrajan
SUMMARY
• 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
Yogendra0Sharma / gist:1965791177e2d219bd70cba8226b3261
Created May 7, 2018 06:08 — forked from luckyyang/gist:42a91d92953c85753c98
Mongodb 3.0 Replica Set Setup with Docker Notes
Reference: https://medium.com/@gargar454/deploy-a-mongodb-cluster-in-steps-9-using-docker-49205e231319#.ff9lbtdl9
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 https://get.daocloud.io/docker | sh
1.2 install daocloud monitoring program
@Yogendra0Sharma
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
Yogendra0Sharma / amazon-ec2-ftp.md
Created April 11, 2018 11:21 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@Yogendra0Sharma
Yogendra0Sharma / my-first-module.md
Created February 15, 2018 07:34 — forked from tmpvar/my-first-module.md
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
Yogendra0Sharma / readme.md
Created February 15, 2018 06:24 — forked from agilecreativity/readme.md
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 init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@Yogendra0Sharma
Yogendra0Sharma / install_predis.sh
Created January 29, 2018 13:03 — forked from vmosoti/install_predis.sh
Installing Redis, Hiredis on Ubuntu 14.04
#!/bin/bash
echo "--------------------------------------------------------------------------------------------"
echo "Installing Predis on Ubuntu 16.04"
echo "Read more: https://github.com/nrk/predis"
echo "Author: Ralf Rottmann | @ralf | http://rottmann.net"
echo "--------------------------------------------------------------------------------------------"
PHP_CONF_DIR="/etc/php/7.0/apache2/conf.d"
echo "Checking prerequisites..."
echo "Git available?"
[ ! -s /usr/bin/git ] && sudo apt-get -q -y install git || echo "Git already installed."
@Yogendra0Sharma
Yogendra0Sharma / letsencrypt_2017.md
Created January 29, 2018 09:19 — forked from nk952777/letsencrypt_2017.md
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 mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.