Skip to content

Instantly share code, notes, and snippets.

View bboalimoe's full-sized avatar

bboalimoe bboalimoe

View GitHub Profile
create nothing into table 5plus6
@bboalimoe
bboalimoe / tlv_decoder.py
Created August 28, 2014 09:30
this is a shit
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
# Copyright (C) 2014 Regents of the University of California.
# Author: Jeff Thompson <jefft0@remap.ucla.edu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
We couldn’t find that file to show.
@bboalimoe
bboalimoe / gist:5fb8ac275824d7aa23c8
Created May 20, 2015 04:17
jiusi的image继承需要的 Dockerfile
FROM senzhub/analyzer.motionsound:v0.2
MAINTAINER hengyang@petchat.io
ADD app.py /app/flask_app/
WORKDIR /app/run
RUN rm -rf /app/run/*
@bboalimoe
bboalimoe / gist:f921dd0dd83a72ac21f9
Created May 20, 2015 04:29
ziyuan esr image 继承gist
FROM senzhub/esr:latest
MAINTAINER hengyang@petchat.io
ADD app.py /app/flask_app/
WORKDIR /app/run
RUN rm -rf /app/run/*
FORMAT: 1A
HOST: 120.27.30.239:9333
# Location Probability
## Compute Location Probability [/senz/locationprob/]
### Do Compute [POST]
@bboalimoe
bboalimoe / gist:2c5587e7b693721aa123
Created May 30, 2015 04:57
nginx proxy buffering bug
将proxy_buffering 默认为on时,需设置
proxy_buffers 20 1000k;
proxy_buffer_size 20k;
如果关闭proxy buffering,也可解决问题。
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
#### added per benoitc/gunicorn: Issue #790:
####

Senz CI 帮助文档

工作环境

  • Jenkins 持续集成系统工具
  • LeanCloud 测试和生产部署环境
  • DaoCloud 测试和生产部署环境
  • Github 代码库以及版本控制工具
var express = require('express');
//var path = require('path');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
//var todos = require('./routes/todos');
var cloud = require('./cloud');
var log = require("./essential_modules/utils/logger.js").log
var logger = new log("App module");
var app = express();
@bboalimoe
bboalimoe / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console