Skip to main content

Posts

Showing posts from 2013

Zend Framework 2.2.5 installation on WAMP

I am newbie to Zend Framework, was trying to install Zend Framework 2.2.5 on WAMP 2.4 but struggled a lot. After couple of hours I got a link which helped me to install ZF2 just in minutes, so sharing the same. Hopefully it will help someone like me in future.  http://www.youtube.com/watch?v=0dfWOgb5cr4   Thanks!!!!!!! Enjoy Programming J

How to configure a static ip in Linux using Console?

Configuring your Linux machine to run on a static IP is easy. You can do that both from Console and GUI. This tutorial is to  configure a static ip in Linux using Console. Follow following steps :    a)  Go to      # cd /etc/sysconfig/network-scripts/     Every network interface will have it’s own interface script files.          For Ex - eth0,eth1,eth2 etc.   b) Edit ifcfg-eth1 interface script file for interface eth1.       Replace the contents of the ifcfg-eth1 file with the parameters below.     # vi ifcfg-eth1      DEVICE=eth1     IPADDR=xxx.xxx.xxx.xxx     NETMASK=255.255.255.0     NETWORK=xxx.xxx.xxx.0     # If you're having problems with gated making xxx.xxx.xxx.0/8      #  a martian, you can change this to something else      #  (255.255.255.255, for example)          BROADCAST=xxx.xxx.xxx.255     ONBOOT=yes     NAME=loopback  c) Save the file and restart your interface to apply changes.      # ifdown eth1  

Github : ignore files

Recently I have started working with git version control system and I’m loving it, especially the Git bash.  Usually in each and every project there are some files which we don’t want to commit and push on live again and again. For example configuration files and db files once committed don’t need to be modify again for live site. In such cases to stop manual intervention git provide us the facility to ignore files. Let’s discuss:   We can ignore files in two ways. 1) Using .gitignore file :  If you don’t want some files to be added and want to ignore them while uploading on  server, then you can use .gitignore file. For example you have a file named bkp_config.php and while pushing you code live you don’t want to push that file. In such cases you can use .gitignore file.    There are again two scenarios. a)      Files have already been tracked. Means first you have added the files, committed them and then pushed them on master repository.