Skip to content

Instantly share code, notes, and snippets.

View chenminhua's full-sized avatar
🎯
Focusing

陈敏华 chenminhua

🎯
Focusing
View GitHub Profile
@chenminhua
chenminhua / 00-about-search-api-examples.md
Created March 6, 2016 10:20 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@chenminhua
chenminhua / Linux Static IP
Created August 3, 2017 03:04 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
digraph architecture {
rankdir=LR;
// Storage - #303F9F (dark blue)
node[fillcolor="#303F9F" style="filled" fontcolor="white"];
database[label="DB"]; cache[label="Redis"];
// Client-side Apps - #FFEB3B (yellow)
node[fillcolor="#FFEB3B" style="filled" fontcolor="black"];
front_end[label="Front-end App"]; extension[label="Browser Extension"];
@chenminhua
chenminhua / Makefile
Created February 14, 2022 04:26 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
@chenminhua
chenminhua / epoll.go
Created February 24, 2022 12:58 — forked from tevino/epoll.go
An example of using epoll in Go
package main
import (
"fmt"
"net"
"os"
"syscall"
)
const (