Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

kimhuang hgkmail

🎯
Focusing
View GitHub Profile
@hgkmail
hgkmail / nginx.conf
Created Jul 18, 2018
nginx upstream example
View nginx.conf
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 {
@hgkmail
hgkmail / README-Template.md
Created Aug 23, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.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 Mar 30, 2019
SConstruct example
View SConstruct
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 Apr 8, 2019
CMakeLists.txt example
View CMakeLists.txt
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 Apr 28, 2019
My .vimrc
View .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 Jun 4, 2019
openresty demo
View nginx.conf
#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;