Skip to content

Instantly share code, notes, and snippets.

@hgfischer
hgfischer / benchmark+go+nginx.md
Last active April 11, 2024 22:09
Benchmarking Nginx with Go

Benchmarking Nginx with Go

There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.

So, these are the different settings we are going to compare:

  • Go HTTP standalone (as the control group)
  • Nginx proxy to Go HTTP
  • Nginx fastcgi to Go TCP FastCGI
  • Nginx fastcgi to Go Unix Socket FastCGI
@nerr
nerr / mwan3.conf
Last active October 26, 2015 11:32
mwan3 load balance config file for OpenWRT
####
#### interfaces
####
config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
list track_ip '208.67.222.222'
list track_ip '208.67.220.220'
option reliability '2'
@kukat
kukat / Philips 288P6 4K 开箱.md
Last active January 7, 2020 07:05
Philips 288P6 4K 开箱

为什么 4K?为什么 28 寸

  • 分辨率越大显示的东西越多
  • 高 PPI: 157
  • OS X 10.9.3 以后改进了对 4K 的支持,可以 “Retina” 化,这样就不会出现 Mac 外接显示器字体发虚的问题
  • 尝鲜,想体验下超高清
  • 放在公司办公用,TN 面板无所谓,我不嫌弃
  • 价钱不贵

为什么 Philips?

@md5
md5 / 00_README.md
Last active May 18, 2024 22:27
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend

Usage

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
@evantoli
evantoli / GitConfigHttpProxy.md
Last active June 1, 2024 18:25
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like: