Skip to content

Instantly share code, notes, and snippets.

@rrrodrigo
rrrodrigo / redis-server-for-init.d-startup
Created February 11, 2011 09:44 — forked from enaeseth/redis-server-for-init.d-startup
fork of eneaseth's init script adjusted for multiple redis-server instances, each with it's config, log, pid and port
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/