Skip to content

Instantly share code, notes, and snippets.

View nijogeorgep's full-sized avatar
🌐
Focusing

NIJO GEORGE PAYYAPPILLY nijogeorgep

🌐
Focusing
View GitHub Profile
@nijogeorgep
nijogeorgep / myscript.sh
Created October 15, 2020 07:41 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"

Keybase proof

I hereby claim:

  • I am nijogeorgep on github.
  • I am npayyappilly (https://keybase.io/npayyappilly) on keybase.
  • I have a public key ASB6_92Ys1clfCbl_D_v_qmHusR9cGN8yVZwSJkwLKceUwo

To claim this, I am signing this object:

@nijogeorgep
nijogeorgep / Null Checks and Empty Checks on Objects
Last active January 21, 2019 06:21
Null Checks and Empty Checks on Objects
class util {
/**
* This method returns true if the collection is null or is empty.
* @param collection
* @return true | false
*/
public static boolean isEmpty( Collection<?> collection ){
if( collection == null || collection.isEmpty() ){
return true;
}
@nijogeorgep
nijogeorgep / Proxy Config for NPM
Created January 17, 2019 12:11
Configure Proxy for NPM
Usually developers face issues for downloading npm packages while they work behind proxy the below solution can fix their problems if they configure it properly
> npm config set strict-ssl false
> npm config set https-proxy http://<username>:<password>@proxy.[Company Name].com:[Port]
use the above commands to set proxy for NPM
To Verify the proxy settings for NPM
1. open .npmrc file from the users home folder and check whether an entry got created in it.
@nijogeorgep
nijogeorgep / MongoDB in Windows.txt
Created January 17, 2019 11:31
MongoDB in Windows
==================================================================================================================
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb-community-edition
mkdir c:\data\db
mkdir c:\data\log
----------------------------------------
mongod.cfg (Create At : C:\Program Files\MongoDB\Server\3.6)
----------------------------------------
systemLog: