no Homebrew required
$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz| # MySQL Server Instance Configuration File | |
| # ---------------------------------------------------------------------- | |
| # Generated by the MySQL Server Instance Configuration Wizard | |
| # | |
| # | |
| # Installation Instructions | |
| # ---------------------------------------------------------------------- | |
| # | |
| # On Linux you can copy this file to /etc/my.cnf to set global options, | |
| # mysql-data-dir/my.cnf to set server-specific options |
[Demo] (https://codesandbox.io/s/react-codesandboxer-example-5sh93?file=/example.js)
import React, { useState, useEffect } from "react";
import Select, { components } from "react-select";
const menuHeaderStyle = {
padding: "8px 12px",
background: "#333",
color: "white"| #include <iostream> | |
| #include <stream_rt_handler.h> | |
| /*https://github.com/gabime/spdlog*/ | |
| #include "spdlog/spdlog.h" | |
| /***Compile by ***/ | |
| /** cd build **/ | |
| /** g++ -DSPDLOG_FMT_PRINTF -std=c++11 ../sample_with_spdlog.cpp -lsrh -pthread **/ |
| # nginx.conf | |
| ### link to your local path and call ### | |
| server { | |
| listen 8888; | |
| ... | |
| ngx_http_c_func_link_lib "/path/to/your/libcfuntest.so"; | |
| ... | |
| ... | |
| location = /testCFunGreeting { | |
| # if not variable specified, direct write response out |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| int strpos(const char *haystack, const char *needle) | |
| { | |
| char *p = strstr(haystack, needle); | |
| if (p) | |
| return p - haystack; |
| #include <stdio.h> | |
| #include <pthread.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define THREAD_RUN 100 | |
| typedef struct $ | |
| { | |
| char s[50]; | |
| } concurrent_update; |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <netinet/tcp.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> |