Skip to content

Instantly share code, notes, and snippets.

@ryanicle
ryanicle / gist:788670533f7f6184dca3
Created November 11, 2014 02:08
Git log commits based on author
git log --pretty=format:"%h %s |%ad| by %cn" --date=short --reverse --branches --since=30-10-2014 --author=ryanicle
---
layout: post
title: "How to setup Rails app with puma and NGINX"
date: 2013-03-16 17:51
comments: true
categories:
tags: nginx, capistrano, deployment, rails, ruby, puma
author: "Trung Lê"
---
@ryanicle
ryanicle / gist:7618577
Created November 23, 2013 19:01
memcached start for Webfaction -p = Port
memcached start -d -l 127.0.0.1 -m 5 -P $PWD/memcached.pid -p XXXXX
# git clone https://github.com/nicolasff/phpredis.git
# cd phpredis
# phpize
# make
# make install
# vi /etc/php.d/redis.ini
# extension=redis.so
1.CentOS 6.3
#yum install make gcc
#cd /opt
$wget http://redis.googlecode.com/files/redis-2.x.xx.tar.gz
$tar zxf redis-2.x.xx.tar.gz
$cd redis-2.x.xx
$make
$make install
//////