This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pathname' | |
NGINX_ROOT = Pathname.new('/opt/nginx') | |
SERVER_EXT = 'dev' | |
projects=Pathname.glob(::File.expand_path('../*/config.ru', __FILE__)).map(&:dirname) | |
dev_conf_dir="#{NGINX_ROOT.join('conf',SERVER_EXT)}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gzip on; | |
#开启gzip,同时对于api请求的json格式也开启gzip | |
gzip_types application/json; | |
#每台机器都运行nginx+unicorn,本机用domain socket,方便切换 | |
upstream ruby_backend { | |
server unix:/tmp/unicorn.sock fail_timeout=0; | |
} | |
#用try_files方式和proxy执行rails动态请求 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ _ _ _ | |
| | _(_) | ___ _ __ _(_)_ __ ___ | |
| |/ / | |/ / | | |____\ \ / / | '_ ` _ \ | |
| <| | <| |_| |_____\ V /| | | | | | | | |
|_|\_\_|_|\_\\__, | \_/ |_|_| |_| |_| | |
|___/ | |
Font Name: Standard | |
http://patorjk.com/software/taag/#p=display&f=Standard&t=kiky-vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;配置路径 | |
(add-to-list 'load-path "~/.emacs.d") | |
(add-to-list 'load-path "~/.emacs.d/evil") | |
(add-to-list 'load-path "~/.emacs.d/auto-complete") | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes") | |
;;摘掉菜单,工具栏和滚动条 | |
;;M-` or F10 菜单唤出热键 | |
;; (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) | |
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Modeline and Notes | |
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=0 foldmethod=marker: | |
" | |
" _ _ _ _ | |
" | | _(_) | ___ _ __ _(_)_ __ ___ | |
" | |/ / | |/ / | | |____\ \ / / | '_ ` _ \ | |
" | <| | <| |_| |_____\ V /| | | | | | | | |
" |_|\_\_|_|\_\\__, | \_/ |_|_| |_| |_| | |
" |___/ | |
" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = vim | |
pager = less -F -X | |
[color] | |
ui = true | |
[user] | |
email = [email protected] | |
name = kikyous | |
[alias] | |
s = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/self_drivings/44?status=success&fee=1&bankDealId=130913404926&bankId=BOC&ext1=44&payAmount=1&dealId=1185702759&orderTime=20130913143903&signMsg=9CCC771523EBED8B58C5296ECF823404&payType=10&language=1&errCode=&version=v2.0&ext2=&signType=1&orderAmount=1&orderId=ZJ20130913143836728&dealTime=20130913144138&merchantAcctId=1002213648401&payResult=10" for 1.83.125.41 at 2013-09-13 14:41:11 +0800 | |
Processing by SelfDrivingsController#show as HTML | |
Parameters: {"status"=>"success", "fee"=>"1", "bankDealId"=>"130913404926", "bankId"=>"BOC", "ext1"=>"44", "payAmount"=>"1", "dealId"=>"1185702759", "orderTime"=>"20130913143903", "signMsg"=>"9CCC771523EBED8B58C5296ECF823404", "payType"=>"10", "language"=>"1", "errCode"=>"", "version"=>"v2.0", "ext2"=>"", "signType"=>"1", "orderAmount"=>"1", "orderId"=>"ZJ20130913143836728", "dealTime"=>"20130913144138", "merchantAcctId"=>"1002213648401", "payResult"=>"10", "id"=>"44"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/user/bin/env ruby | |
#coding: utf-8 | |
APP_ROOT = File.dirname(__FILE__) | |
PROJECT_NAME = 'My Fantastic Game' | |
PROJECT_HOST = '0.0.0.0' | |
WEB_PORT = 9292 | |
WS_PORT = 8080 | |
COOKIE_KEY = 'my.session.key' | |
COOKIE_SECRET = 'shh_replace_me_withsomething_moresecret' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/elazarl/goproxy" | |
"log" | |
"net/http" | |
"regexp" | |
) | |
var players = map[string] string { | |
"youku_loader": "http://chat.saas.bdfzer.com/uploads/20131101171855-loader.swf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
body { | |
color:white; | |
background:black; | |
} | |
</style> |
OlderNewer