Sign in

Trust me, I’m a liar

I love to work with pencils & colors since I was a kid. I’m not a pro and I draw only for my inner peace :)

Gentle kiss on her forhead

If your linux machine doesn’t have netcat installed or nc command isn’t available, install netcat first. If you have already, skip this step.

sudo apt-get update
sudo apt-get install netcat

Assume you’re Piash and you’re the server. Now run this command in your terminal:

awk -W interactive '$0="\033[1;32mPiash: \033[0m"$0' | nc -l -p 1234

If Rupa is a client and wants to connect to the server, she has to run this:

awk -W interactive '$0="\033[1;34mRupa: \033[0m"$0' | nc <ip_of_server> 1234

<ip_of_server> : Server’s IP address. e.g.
1234 : Port number. Anything valid will do

Start chatting! Your chat screen should look like this:

Although standard git cli is good, gitsome is even better! At least who wants the luxury of not memorizing hundreds of commands and focus more on development, gitsome is a must try CLI for them. And the good thing is, this integrates with GitHub which reduce the stress to toggle between CLI and browser again and again. Without any further ado, let’s install it.


sudo apt-get install python3-pip
sudo -H pip3 install gitsome

You’re done with installation! Now lets test it. Run this to enable gitsome CLI:


Try writing anything, you’ll get command suggestions! Cool, right?

Are you tired of boring log showed by git log command like below?

Long list of useful terminal commands which may come in handy

Set terminal title

Add these codes to ~/.bashrc

# function to set terminal title
function set-title(){
if [[ -z "$ORIG" ]]; then

now while in terminal, run: set-title “New Title”

Re-run previous command

mkdir /etc/myDir // sample command
# Permission denied
sudo !!
# Success!

Find PID of a process

pgrep firefox // replace firefox with expected process name

Copy contents of a file to clipboard

xclip -sel clip < 51-android.rules

Free PID/port

netstat -ntlp
kill -9 pid

Remove Non-empty folder

rm -rf mydir

Copy from terminal


Change ownership

chown -c piash:piash /var/www/html/ [new, root]

Install tasksel

sudo apt-get install tasksel

Install phpmyadmin

sudo apt-get install phpmyadmin

Open mysql from terminal

mysql -u root -p

To update & upgrate OS

sudo apt-get update && sudo apt-get upgrade

Install Sublime-Text-2

sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo…

As Ionic depends on cordova, you need to install it first. To install Cordova, make sure you have Node.js installed. Following step by step guide shows what to do to install ionic so that you can build your brand new ionic app right away. This guide is intentionally made precise rather explaining much stuffs. Lets get going!

Install node.js (v4)

If you don’t have cURL installed, install it first:

sudo apt-get install php5-curl

Now run following commands:

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

To compile and install native addons from npm you may also need to…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store