Tips &Tricks

Gnu-bash-logo 0

$? variable in linux

$? Sta­tus of the pre­vi­ous process / com­mand which ran on the shell $ pwd $ echo $? // returns 0 which means the pre­vi­ous com­mand ran sucess­fully $ blah­Com­mand $echo $? // returns 1…

node 0

path.join vs path.resolve in node.js

path.join([…paths]) joins all the path seg­ments using plat­form spe­cific delim­iter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path seg­ments into an absolute path. It processes from right to left, until…

docker 0

Delete unused docker images

You usu­ally have to clear unused docker images oth­er­wise it will eat up all your disk space. I real­ized this when i got an error ERROR: Failed to cre­ate usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore: No space left on…

ubuntu-icon 0

Set the terminal title in ubuntu desktop — gnome

Cus­tom ter­mi­nal titles are an easy way to keep track of the processes in each ter­mi­nal, when you have mul­ti­ple ter­mi­nal tabs open in the same win­dow. Ubuntu desktop(Gnome) lets you set them using…

How does browser work? 0

How does browser work?

Have you also won­dered how browser works? How does the flow chart look like for Fetch, Parse, Flow, Paint Engine look Dou­glass Crock­fard exaplains the flow chart with a his­tory of Mosaic and Netscape Navigator.