Tuesday, December 22, 2015

Find a linux command


Use the following utility "apropos"

To find any command ( or command description ) that contains "time" substring.
#apropos time

Persistent sudo

Run the following command to get a persistent sudo in a terminal session
#sudo su

Saturday, December 12, 2015

Friday dinner 12/11/15

It was a nice time going out with my closest friends Khaled, Arabaty and Ayman in our regular Friday night outing dinner.
This week 3 Ayman relatives, Osama Ahmed and Mohamed, joined us in that dinner at Falafel Corner restaurant.
TBC..

Wednesday, December 2, 2015

NodeJS rewrite console out lines

Sample code:
var i = 0;  // dots counter
setInterval(function() {
  process.stdout.clearLine();  // clear current text
  process.stdout.cursorTo(0);  // move cursor to beginning of line
  i = (i + 1) % 4;
  var dots = new Array(i + 1).join(".");
  process.stdout.write("Waiting" + dots);  // write text
}, 300);