Skip to content

Instantly share code, notes, and snippets.

@logicalparadox
logicalparadox / script.md
Created April 24, 2012 21:51 — forked from torgeir/install_redis_on_ubuntu.md
Redis 2.4.x Install on Ubuntu 10.04

Installation commands:

wget http://redis.googlecode.com/files/redis-2.4.8.tar.gz
tar xvfz redis-2.4.8.tar.gz 
cd redis-2.4.8/
mkdir -p /opt/redis
make PREFIX=/opt/redis install
cp redis.conf /opt/redis/redis.conf
useradd -rMU -d /opt/redis -s /bin/false -c redis redis
@logicalparadox
logicalparadox / gist:2331533
Created April 7, 2012 19:26 — forked from indexzero/gist:2331488
safe .toJSON()
function toString (obj) {
function _toString (i) {
if (obj[i] === null) return 'null'
if (typeof obj[i] === 'undefined') return 'undefined'
if (obj[i].toString) return obj[i].toString()
else return ''
}
return _toString
}
Stability ratings: 0-5
0 - Deprecated. This feature is known to be problematic, and changes are
planned. Do not rely on it. Use of the feature may cause warnings. Backwards
compatibility should not be expected.
1 - Experimental. This feature was introduced recently, and may change
or be removed in future versions. Please try it out and provide feedback.
If it addresses a use-case that is important to you, tell the node core team.
<html>
<head>
<title>Swarm Javascript Library Specifications</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" charset="utf-8"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
type="text/javascript"
charset="utf-8">
</script>
<script src="../node_modules/mocha/mocha.js"