Skip to content

Instantly share code, notes, and snippets.

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
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)
@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.
"""
#!/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 $
##################################################################
#!/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;

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/

@dexterbt1
dexterbt1 / svnserve.sh
Created April 6, 2011 13:15
svnserve init script (tested on CentOS/RHEL 5.x)
#!/bin/bash
#
# /etc/init.d/subversion
#
# Starts the Subversion Daemon
#
# chkconfig: 2345 90 10
# description: Subversion Daemon
@dexterbt1
dexterbt1 / fatfreecrm-0.9.10.gems.list
Created December 10, 2011 18:17
working gem list for fatfreecrm 0.9.10
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
activesupport (3.0.7)
acts_as_commentable (3.0.1)
annotate (2.4.0)
archive-tar-minitar (0.5.2)
@dexterbt1
dexterbt1 / gist:1494396
Created December 18, 2011 20:41
dummy bridge for inter-vm VLAN
create a script like this
( mkdir /usr/local/scripts )
/usr/local/scripts/generate_vmbr20.sh
modprobe -o dummy0 dummy1
ifconfig dummy0 up
brctl addbr vmbr20
brctl addif vmbr20 dummy0
ifconfig vmbr20 up