Skip to content

Instantly share code, notes, and snippets.

View raythorn's full-sized avatar
🎯
Focusing

Derek Ray raythorn

🎯
Focusing
  • Beijing Raythorn Technology Co,. Ltd.
  • Beijing
View GitHub Profile
@raythorn
raythorn / PrecompiledHeaders.cmake
Created January 22, 2018 04:03 — forked from leeor/PrecompiledHeaders.cmake
CMake module for GCC/Clang precompiled headers support
include(CMakeParseArguments)
macro(combine_arguments _variable)
set(_result "")
foreach(_element ${${_variable}})
set(_result "${_result} \"${_element}\"")
endforeach()
string(STRIP "${_result}" _result)
set(${_variable} "${_result}")
endmacro()
@raythorn
raythorn / PrecompiledHeader.cmake
Created January 22, 2018 04:03 — forked from larsch/PrecompiledHeader.cmake
cmake module for setting up precompiled headers (MSVC & GCC)
# Function for setting up precompiled headers. Usage:
#
# add_library/executable(target
# pchheader.c pchheader.cpp pchheader.h)
#
# add_precompiled_header(target pchheader.h
# [FORCEINCLUDE]
# [SOURCE_C pchheader.c]
# [SOURCE_CXX pchheader.cpp])
#
@raythorn
raythorn / gist:c741e1fb19211c33afa8a14e70788da6
Created January 12, 2018 06:20 — forked from itxx00/gist:b09b8eb9a5528c0d7aff
nginx fcgiwrap git-http-backend setup on CentOS6
/etc/nginx/conf.d/git.conf
server {
listen 443;
server_name git.test.net;
root /data/web;
charset utf-8;
index index.html;
access_log /var/log/nginx/git_access.log;