Skip to content

Instantly share code, notes, and snippets.

View yannis's full-sized avatar

Yannis Jaquet yannis

View GitHub Profile
@yannis
yannis / tmux-cheatsheet.markdown
Created January 18, 2016 07:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@yannis
yannis / nginx.conf
Created January 26, 2012 15:26 — forked from sax/nginx.conf
unicorn + nginx on launchd
user sax staff;
worker_processes 1;
daemon off;
error_log /var/log/nginx/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
pid /var/run/nginx.pid;
@yannis
yannis / nginx_rails_3_1
Created January 24, 2012 20:31 — forked from shapeshed/nginx_rails_3_1
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {