- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...$ cp /etc/redis.conf /etc/redis-xxx.conf...| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| var appID = '344764665598630'; | |
| var appURL = 'http://www.coherent-labs.com/sample.html'; | |
| var userID; | |
| var userToken; | |
| function SetPortrait(fbAvatar) { | |
| var url = fbAvatar.picture.data.url; | |
| $('#fbButton').css("background-image", "url(" + url + ")"); | |
| } |
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |