background picture of the home page

Think in Code

nginx配置代理

nginx配置 TCP转发代理 stream { # 统一放置,方便管理 # include tcpConf/*.conf; # 访问8080/tcp将会直接转发到2324/tcp upstream tcp_proxy {

thumbnail of the cover of the post

proxy iptables

proxy iptables dnsmasq 配置 https://github.com/cokebar/gfwlist2dnsmasq 通过 dnsmasq 将dns请求转发到程序中,dnsmasq_gfwlist.conf 里的端口和程序监听端口保持一致 vi /etc/dnsmasq.conf

thumbnail of the cover of the post

Qt Mac OS 应用图标生成

Qt Mac OS 应用图标生成 mkdir icons.iconset sips -z 16 16 pic.png --out icons.iconset/icon_16x16.png sips -z 32 32 pic.png --out icons.iconset/icon_

thumbnail of the cover of the post

Go生成库给C C++

Go生成库给C/C++ Windows main.go package main /* #include <stdlib.h> */ import "C" import ( "net" "unsafe" ) //export GetMacAddr

thumbnail of the cover of the post