Skip to content

Instantly share code, notes, and snippets.

@ankion
ankion / nginx-unicorn-config
Last active August 29, 2015 14:02
sample for nginx with unicorn
upstream [project name]_unicorn_socket {
server unix:/home/deploy/[project name]/shared/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name 192.168.3.103;
root /home/deploy/[project name]/current/public;
client_max_body_size 5M;
@ankion
ankion / squirrel.yaml
Created December 28, 2013 07:05
鼠鬚管 Squirrel 設定檔
# Squirrel settings
# encoding: utf-8
config_version: "0.22"
us_keyboard_layout: false
# for veteran chord-typist
chord_duration: 0.1 # seconds
@ankion
ankion / default.custom.yaml
Created December 28, 2013 07:03
鼠鬚管 Squirrel 設定檔
patch:
schema_list:
- schema: boshiamy_t # 嘸蝦米中文模式
- schema: boshiamy_j # 嘸蝦米日文模式
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
ascii_composer:
good_old_caps_lock: true
#!/bin/sh
#
# nginx – this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid