Friday, January 13, 2017

SSL certification of you web site

This will create a certification file and send to free certification authority "https://certbot.eff.org" sponsored by linux foundation.

Following are for apache deployment on Ubuntu compatible.
For other configurations visit https://certbot.eff.org

sudo apt-get install python-letsencrypt-apache
sudo letsencrypt --apache

Tuesday, June 10, 2014

Code coverity using GCC gcov



Create a cpp source file with main function and name it main.cpp

Build source with gcov enabled
g++ -Wall -fprofile-arcs -ftest-coverage main.cpp
                It will generate main.gcno file
Run binary
                ./a.out
                It will generate main.gcda file
Run gcov for the source file
                gcov main.cpp
                it will generate main.cpp.gcov file
Open main.cpp.gcov and analyse ##### lines for un tested code lines.

Monday, April 21, 2014

Ubuntu Quick configuration script for easy customization

echo "alias ?='ls -ltr'" >> ~/.bashrc
echo "alias .='ls -pwd'" >> ~/.bashrc
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
xbacklight -set 10 
wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash
gsettings set com.canonical.desktop.interface scrollbar-mode normal