Categories
GNU/Linux

What is the default php includes path on linux?

This post specifies the default php includes path on a linux distribution. The one I used was gentoo. This is the path that will be globally included in all your php projects. It is: include_path = “.:/usr/share/php5:/usr/share/php” If you want to change this path, just change the above line in php.ini and restart apache or […]

Categories
git

Git Tutorial Part 3: Ignoring Files (Gitignore)

Git Ignoring Files In most projects we have a set of files that we do not want to track these are usually logs or compilation or runtime files. In these cases we make use of: .gitignore To create a file listing to match the files we don’t want to track: cat .gitignore *.[oa] *~ This […]

Categories
GNU/Linux

Glob Patterns

man 7 glob Glob Patterns: Globbing Pathnames Long ago, in Unix V6, the was a program /etc/glob that would expand wildcard patterns.Soon it was built into shell and bash. Glob (Wildcard) Matching A string is a wildcard pattern if it contains one of the characters: ?  *  [ Globbing is the operation that expands a […]

Categories
git

Git Tutorial Part 2: Repository, Cloning, Tracking and Staging

This article gives the basics for a beginner user who needs to start tracking and contributing to projects managed with git. The Git Repository Initialising from an existing directory git init This command creates the .git directory.At this point nothing is tracked though. git add * git add README git commit -m ‘Initial Commit’ Cloning […]

Categories
git

Git Tutorial Part 1: Git Configuration

This Git Config Basics Tutorial will help you find out how configuration works and how you can configure your git Types of Configuration System Wide: This configuration file is found at: /etc/gitconfig. This contains the default values for all users on the system. git config –system Global/Per User: Found at: ~/.gitconfig. This is the configuration […]