Skip to content

Instantly share code, notes, and snippets.

View runzhen's full-sized avatar
🎯
Focusing

null runzhen

🎯
Focusing
View GitHub Profile
ngx_addon_name=ngx_http_myfilter_module
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP_FILTER
ngx_module_name=ngx_http_myfilter_module
ngx_module_srcs="$ngx_addon_dir/ngx_http_myfilter_module.c"
. auto/module
else
@runzhen
runzhen / get.c
Created September 6, 2018 07:06
share-memory
#include <stdio.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#define STORAGE_ID "/SHM_TEST"
#define STORAGE_SIZE sizeof(int)
int main(int argc, char *argv[])