Tips &Tricks

Windows-10 0

How to add/edit environment variables in windows10

Go to Con­trol Panel -> Sys­tem and Secu­rity -> Sys­tem Click on Advanced sys­tem set­tings in the left col­umn It opens Sys­tem Prop­er­ties win­dow Click on Envi­ron­ment Vari­ables but­ton at the bot­tom Note: Path…

Windows-10 0

How to sudo in windows

There is no sudo com­mand in win­dows. But you can run the com­mand prompt with admin priv­i­leges by right click­ing the it and select­ing run as administrator.

Gnu-bash-logo 0

Autocomplete cli from history

Use the fol­low­ing steps to do the reverse search in your bash his­tory. $ Ctrl + R $(reverse-i-search)‘’: [start typ­ing com­mand…] [Tab/Enter] — Tab will com­plete the com­mand and brings back the CLI. -…

mac-apple-logo 0

pipe the output to the file

When you want to save the ter­mi­nal logs into an exter­nal file, use the fol­low­ing com­mand. <com­mand> 2>&1 | tee foo.txt Replace, the com­mand with your com­mand. For exam­ple, grunt unittest More details about…

gulp 0

TypeError: dest.on is not a function

Fol­low­ing is the anti pat­tern gulp.src( ‘Foo’ ).pipe( shell( ‘Bar’ ) ); Use the fol­low­ing pat­tern gulp.task( ‘Foo’, shell.task(‘Bar’) ); Anti-pattern Github Issue