Tag Archives: Shell

Change tab width in vim

By default, inside vim the tab width is 8 spaces, we can reduce it using below steps. Create a .vimrc file in ~(home dir) and add below content.  Save it and now try. filetype plugin indent on ” show existing … Continue reading

Posted in SCRIPTING, TIPS & T RICS, Uncategorized | Tagged , , | Leave a comment

send foreground job/running process to run in background

1.Moving Linux job from Foreground Into background : start the program Ctrl+Z (Will pause the program on the terminal) jobs (find the job number from current shell) bg  %jobnum   NOTE : Here we are only sending the process into … Continue reading

Posted in HOWTO, OperatingSystem, TIPS & T RICS, TUTORIALS, Uncategorized | Tagged , , | Leave a comment

Docker Private Registry Setup

We can create our own secure private  docker repository where we can store our images and can be accessed from remote machine.   1. Goto /var/lib/docker in server and Create certificate using the domain name: cd /var/lib/docker && mkdir certs … Continue reading

Posted in DevOps, HOWTO, Operations, TUTORIALS, Uncategorized | Tagged , , , , , , | Leave a comment

My Git commandline Cheat-sheet

Creating a new repository mkdir project cd project git init git remote add origin git@github.com:yourlogin/your-repo.git git add . git commit -am “new repository” git push -u origin master Cloning existing repository git clone https://github.com/username/your-repo.git Creating branch git checkout -b feature-1 … Continue reading

Posted in HOWTO, Programming, TIPS & T RICS, Uncategorized | Tagged , , , | Leave a comment

One liner tricks using perl/bash

Sometime small small hacks saves a lot of our time. The regexes used here can be changed as per need. In some cases try alternatively with single/double quote if dont work. Count the number of times a specific character appears … Continue reading

Posted in HOWTO, Programming, TIPS & T RICS, TUTORIALS | Tagged , , , , | Leave a comment