Skip to content

Instantly share code, notes, and snippets.

##tornado-debug 原理

使用方法: $ tor-deb python -m wcms_front.server

原理流程:

  1. 把/usr/lib/python2.7/site-packages/tornado_debug/bootstrap添加到环境变量PYTHONPATH

  2. 使用os.execl开启子进程,运行python程序

@Yaiba
Yaiba / ns-cheatsheet.clj
Created March 13, 2017 02:36 — forked from ghoseb/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy