Skip to content

Instantly share code, notes, and snippets.

https://www.google.com.hk/search?newwindow=1&q=compile+nginx&oq=compile+nginx&gs_l=psy-ab.3...391087.392005.0.392239.7.6.0.0.0.0.288.288.2-1.1.0....0...1.1.64.psy-ab..7.0.0.LWGlKWnAerY | compile nginx - Google Search
https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/ | How to Install NGINX Open Source | NGINX
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-web-server-and-reverse-proxy-for-apache-on-one-ubuntu-16-04-server | How To Configure Nginx as a Web Server and Reverse Proxy for Apache on One Ubuntu 16.04 Server | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04 | How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04 | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04 | How To Install Nginx on Ubuntu 16.04 | DigitalOcean
https://www.digitalocean.com/community/tutorials/how-to-configure-the-nginx-web-server-on-a-virtua
@d0zingcat
d0zingcat / picpatch.py
Created March 30, 2017 13:23
This is a py-program to patch JPEG Photos to prevent auto-rotate in markdown files.
from PIL import Image
import os, argparse, pexif
def picProcessing(picPath, isForce=False):
try:
img = pexif.JpegFile.fromFile(picPath)
@d0zingcat
d0zingcat / wechat-ofobicyclehacker-app.py
Last active August 14, 2016 17:04
The main feature of one python based back side for wechat official account (Powered by LeanEngine)
# This code is for my post: Using Flask and LeanCloud to build a backend of Wechat Official Account
# welcome to visit the post: https://blog.d0zingcat.xyz/2016/07/24/Python/Using%20Flask%20and%20LeanCloud%20to%20build%20a%20backend%20of%20Wechat%20Official%20Account/#more
# coding: utf-8
from datetime import datetime
from flask import render_template, Flask, request, make_response, jsonify, abort
from flask_sockets import Sockets
from views.todos import todos_view
import xml.etree.ElementTree as ET

Keybase proof

I hereby claim:

  • I am d0zingcat on github.
  • I am d0zingcat (https://keybase.io/d0zingcat) on keybase.
  • I have a public key ASDXr5ClrnFbfQHQ-d9Gl6YuqX7ohz8IH-nlE46FjVSc3Qo

To claim this, I am signing this object:

@d0zingcat
d0zingcat / installChaCha20.sh
Created May 9, 2016 05:02
Install ChaCha20 Encryption for Shadowsocks On CentOS
yum install m2crypto gcc -y
wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar zfvx libsodium-*.tar.gz
cd libsodium-*
./configure
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
// ==UserScript==
// @name GoogleKingKong
// @namespace http://userstyles.org
// @description 改善 Google 的搜索结果界面,提高阅读效率
// @version 5.6
// @author SUCCESS
// @include http://www.google.*/search*
// @include http://www.google.*/*#*
// ==/UserScript==
/* 更新记录 ***********************************************************************