apt-get install git-core build-essential pkg-config libtool libevent-dev libncurses-dev zlib1g-dev automake libssh-dev cmake ruby
Install msgpack >= 1.2.0
git clone https://github.com/msgpack/msgpack-c.git cd msgpack-c cmake .
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
|# $ docker-machine create my-machine123 -d virtualbox|
|# $ ruby <(curl -L https://git.io/vZT32) my-machine123|
|bootlocalsh = %Q(#/bin/bash|
|### BEGIN INIT INFO|
|# Provides: uniqush-push|
|# Required-Start: $remote_fs $network|
|# Required-Stop: $remote_fs $network|
|# Default-Start: 2 3 4 5|
|# Default-Stop: 0 1 6|
|# Short-Description: starts uniqush-push|
|# Description: Starts Uniqush provides a unified push service for server-side notification to apps on mobile devices.|
|### END INIT INFO|
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:
|// Pipeline strings together the given exec.Cmd commands in a similar fashion|
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).