Skip to content

Instantly share code, notes, and snippets.

View hgkmail's full-sized avatar
🎯
Focusing

kimhuang hgkmail

🎯
Focusing
View GitHub Profile
@hgkmail
hgkmail / nginx.conf
Created July 18, 2018 19:25
nginx upstream example
upstream backend {
server backend1.example.com weight=5;
server backend2.example.com:8080;
server unix:/tmp/backend3;
server backup1.example.com:8080 backup;
server backup2.example.com:8080 backup;
}
server {
https://yq.aliyun.com/articles/221687
@hgkmail
hgkmail / README-Template.md
Created August 23, 2018 08:05 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@hgkmail
hgkmail / SConstruct
Created March 30, 2019 08:39
SConstruct example
env=Environment(CPPPATH='/usr/include/boost/',
CPPDEFINES=[],
LIBS=["pthread"],
CXXFLAGS="-std=c++0x -g -O0"
)
env.Program("app", ["app.cpp"])
@hgkmail
hgkmail / CMakeLists.txt
Created April 8, 2019 07:39
CMakeLists.txt example
cmake_minimum_required(VERSION 2.6)
project (foo)
#FXN_VERSION是为网友FXN定制的版本,增加了一些特殊功能,如果您不需要,可以去掉-DFXN_VERSION选项(默认不开启)
#-DFXN_VERSION
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -g -Wall -O0 -Wno-unused-variable -pthread")
link_directories(
${PROJECT_SOURCE_DIR}/lib
@hgkmail
hgkmail / .vimrc
Last active April 28, 2019 08:34
My .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@hgkmail
hgkmail / nginx.conf
Last active June 4, 2019 07:07
openresty demo
#user nobody;
worker_processes 4;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;