Skip to content

Instantly share code, notes, and snippets.

@yin8086
yin8086 / pandoc.template.zh.tex
Created November 28, 2012 15:54 — forked from farawayboat/pandoc.template.zh.tex
Chinese LaTeX template (using Ctex) for pandoc.
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
% use microtype if available
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
\usepackage[utf8]{inputenc}
@yin8086
yin8086 / gunicorn.sh
Created November 22, 2012 16:10 — forked from suda/gunicorn
Gunicorn init.d script (debian/ubuntu/centos/redhat)
#!/bin/sh
# chkconfig: 2345 55 45
# description: start or stop gunicorn
# chkconfig –add gunicorn in centos and redhat
# update-rc.d gunicorn defaults in debian and ubuntu
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all