Monthly Archives: July 2016

Writing chef Library

In many cases we have to reuse same code again and again in our recipes. So to reduce this we can write our own library module and reuse it’s methods whenever required. This can help us use our own custom … Continue reading

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

Chef/ruby way – Read a file and expose as environment variable

Many time we have to read a property file in in which the variable and value are comma separated and we have to set those in our environment variable to execute certain recipes.   e.g. property file (/u01/data/wor/app/conf/conf.prop) ops_home = … Continue reading

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

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