Vida virtual

Setup a remote git repository using http with push support and digest auth

Written on February 9th, 2011
.

git over http Setup a remote git repository using http with push support and digest auth

And here is another post about our daily job with git, this time talking about how to setting up a remote git repository with digest authentication and support for pushing changes using http protocol.

There is a lot of options to setup a git repository: git-daemon, gitosis, ssh, and more.

  • The more secure way is to use ssh protocol but it needs to create user accounts for each user you want to allow to pull and push changes from the remote repository.
  • For the other hand git-daemon is the faster way that allows to publish a public repository but if you needs to restrict access for some users (allow/disallow push/pull or view one entire repository) this won’t be your best choice.

Now I will write all the steps to setup a remote git repository that uses http protocol.

Read the rest of this entry »

Debugging PHP with XDebug and Komodo IDE

Written on October 6th, 2010
.

Captura de pantalla 1 Debugging PHP with XDebug and Komodo IDEWhen you develop a very important web app it is pretty sure you will need debugging it. The best way to do this is using XDebug so in this article I am going to explain how to setup and use XDebug with Komodo IDE or Edit, but you can use it for Netbeans or Eclipse as well.

The first step is install XDebug in your system (I assume that you have already installed a LAMP server in your system). Read the rest of this entry »

3 ways of get memcached status

Written on June 1st, 2010
.

rect3644 3 ways of get memcached statusIf you use memcached to cache contents among different servers and apps, and you want to get statistics for what is happening inside the memcached-sever you can use one of the available interfaces for programming languages but there are simpler ways to do that. The best way is use the command line because the simple protocol that memcached has.
Read the rest of this entry »

Show nicer file listings with Apache autoindex module

Written on February 17th, 2010
.

capturadepantalla 300x183 Show nicer file listings with Apache autoindex moduleRecently I have working on “mabishu-apache-autoindex”, a set of html, css, icons and image files designed to work together with the mod_autoindex module to make the default Apache file listings look a little nicer.  Try this screenshot demo and If you like it, grab the source files at my Github repository, now I’ll explain how to set it up.

Installation

First, get a copy of the “include” folder – the easiest way is to change to the document root of the domain you want to style, and check it out from git:

$ cd /var/www/YOUR.VHOST.LOCAL
$ git clone http://github.com/frandieguez/mabishu-apache-autoindex.git

This should create an ‘include’ folder in the parent of your document root. Next, you need to configure Apache to use the “includes” files to style your directory listings.

Read the rest of this entry »