Skip to content

Instantly share code, notes, and snippets.

@yaniv-aknin
Created July 4, 2012 15:19
Show Gist options
  • Save yaniv-aknin/3047862 to your computer and use it in GitHub Desktop.
Save yaniv-aknin/3047862 to your computer and use it in GitHub Desktop.
Dirtys: shell function for a quick-and-dirty Redis instance
dirtys () {
if ! which redis-server > /dev/null
then
echo no redis, no dirtys
return 1
fi
redis-server - <<EOF
timeout 0
logfile stdout
databases 1
loglevel notice
requirepass development
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment