Skip to content

Instantly share code, notes, and snippets.

View Yemsheng's full-sized avatar

mason Yemsheng

  • Guangzhou China
View GitHub Profile
@Yemsheng
Yemsheng / centos6.5_nginx
Created February 12, 2017 13:34 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
@Yemsheng
Yemsheng / kas.py
Created May 26, 2016 09:28 — forked from widoyo/kas.py
Generating PDF using Flask & ReportLab
from flask import make_response
from reportlab.pdfgen import canvas
# ...
@app.route('/pdf')
def pdf():
import cStringIO
output = cStringIO.StringIO()
@Yemsheng
Yemsheng / nginx.conf
Created November 5, 2015 03:17
Nginnx config for Yii 2 Advanced App Template (subdomains)
# frontend
server {
listen 80;
server_name yii2.lo;
server_tokens off;
client_max_body_size 128M;
charset utf-8;
access_log /var/log/nginx/yii2-access.log main buffer=50k;