Skip to content

Instantly share code, notes, and snippets.

cgit + lighttpd on CentOS 5.x

install the rpm

http://rpm.pbone.net/index.php3/stat/4/idpl/12891638/dir//com/cgit-0.8.2.1-1.el5.kb.i386.rpm.html

static media

cd /srv/www/html/lighttpd

ln -s /usr/share/cgit git-media/

#!/usr/bin/perl -w
use strict;
use warnings;
use File::Spec;
use Getopt::Long;
use Data::Dumper;
use YAML qw/Dump LoadFile/;
use POSIX qw(setsid :sys_wait_h);
use Term::ANSIColor qw/:constants/;
$Term::ANSIColor::AUTORESET = 1;
#!/usr/bin/perl
# $Id: safetynet,v 1.10 2001/01/19 17:42:02 syntec Exp $
# Author : Evan Borgstrom ($Author: syntec $) at unixpimps.org
# Created : 2000/10/13
# Purpose : Keep things running without complicated init scripts.
# Modified: $Date: 2001/01/19 17:42:02 $
##################################################################
@dexterbt1
dexterbt1 / GFKManager.py
Created April 14, 2010 21:04
django generic foreignkey manager
from django.db.models.query import QuerySet
from django.db.models import Manager
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.generic import GenericForeignKey
class GFKManager(Manager):
"""
A manager that returns a GFKQuerySet instead of a regular QuerySet.
"""
schema
CREATE TABLE autorun_agent (
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY,
agent_id VARCHAR(64) NOT NULL,
on_pre_run_exec VARCHAR(255) NOT NULL DEFAULT '',
on_post_run_exec VARCHAR(255) NOT NULL DEFAULT '',
on_fail_run_exec VARCHAR(255) NOT NULL DEFAULT '',
last_modified TIMESTAMP,
UNIQUE KEY (agent_id)
Summary: Redis advanced key-value store
Name: redis
Version: 1.2.1
Release: 1
License: BSD-style
Group: System Environment/Daemons
URL: http://code.google.com/p/redis/
Source: http://redis.googlecode.com/files/redis-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root