GitWeb theme and improvements from kogakure/gitweb-theme

For the full documentation go here: kogakure/gitweb-theme @ GitHub.

This is a GitHub like theme for GitWeb.

To install it execute the following:

git clone https://github.com/kogakure/gitweb-theme.git
cd gitweb-theme/
./setup -vi --install

This is the log I’ve had with a successfull install:

./setup -vi --install
./setup: [NOTICE] - Target not set, using default path: '/usr/share/gitweb'
./setup:
./setup: Is this ok? [y] | [n] : t./setup: Is this ok? [y] | [n] : y
./setup:
./setup: Backing up original files, continue? [y] | [n] : y
./setup:
./setup: Backing up...
./setup:
'/usr/share/gitweb/static/gitweb.css' -> '/usr/share/gitweb/static/gitweb.css.bak'
'/usr/share/gitweb/static/git-favicon.png' -> '/usr/share/gitweb/static/git-favicon.png.bak'
'/usr/share/gitweb/static/git-logo.png' -> '/usr/share/gitweb/static/git-logo.png.bak'
./setup:
./setup: ...done
./setup:
./setup: Linking theme files, continue? [y] | [n] : y
./setup:
./setup: Linking...
./setup:
'/usr/share/gitweb/static/gitweb.css' -> '/root/gitweb-theme/gitweb.css'
'/usr/share/gitweb/static/git-favicon.png' -> '/root/gitweb-theme/git-favicon.png'
'/usr/share/gitweb/static/git-logo.png' -> '/root/gitweb-theme/git-logo.png'
./setup:
./setup: ...done
./setup:
./setup: [NOTICE] - Installation complete!

Install the syntax highlighting feature:

Under Ubuntu:

apt-get install highlight

and then put this line in /etc/gitweb.conf:

$feature{'highlight'}{'default'} = [1];

For Gravatar support in GitWeb put this line in /etc/gitweb.conf:

$feature{'avatar'}{'default'} = ['gravatar'];

If it doesn’t work for you, you have to manually replace the css, logo and favicon files or edit /etc/gitweb.conf and change the paths to point to the new theme.

Nginx and PHP-FPM status pages from subdomains

Here are two nginx configurations I am using to get the basic status of the two servers by loading different subdomains:

PHP-FPM status page from subdomain.yoursite.com:

server {
 
  listen 80;
  server_name subdomain.yoursite.com;

  location / {
    rewrite .* /fpm-status;
  }

  location /fpm-status {
    auth_basic "Restricted";
    auth_basic_user_file /path/to/.htpasswd;
    fastcgi_pass 172.17.42.1:9000;
    include fastcgi_params;
  }

}

Nginx status page from subdomain2.yoursite.com:

server {

  listen 80;
  server_name subdomain2.yoursite.com;

  location / {
    auth_basic "Restricted";
    auth_basic_user_file /path/to/.htpasswd;
    stub_status on;
  }

}

Just started learning PhalconPHP

http://phalconphp.com

I just started learning it by reading its online documentation. I will definitely have to find a book about it and there is at least one out there and also I have to pass through all the examples like 10 times until I sit and make something with it. The installation of course is the easiest part, even inside a Vagrant box or Docker.