Skip to content

Instantly share code, notes, and snippets.

@yiwa
yiwa / .vimrc
Last active August 29, 2015 14:28
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup
set viminfo='20,\"50
set history=50
@yiwa
yiwa / default.conf
Last active August 29, 2015 14:24
nginxでリバースプロキシを設定する時のnginx/conf.d/default.conf
upstream backend {
server 127.0.0.1:8080;
}
server {
listen 8080;
server_name _;
root /var/www/html;
index index.html index.htm index.php;
charset utf-8;
@yiwa
yiwa / nginx.conf
Created July 1, 2015 04:23
nginxでリバースプロキシを設定する時のnginx.confなど
user nginx;
worker_processes 6;
worker_rlimit_nofile 4096;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}