Skip to content

Instantly share code, notes, and snippets.

cd /usr/src/
sudo wget http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.15.2.tar.gz
sudo tar zxvf haproxy-1.3.15.2.tar.gz
sudo aptitude install libpcre++-dev
sudo make TARGET=linux26 CPU=i386 USE_STATIC_PCRE=1
sudo make install
sudo haproxy -f /etc/haproxy/haproxy.conf
https:// ..url.. /haproxy?stats
sudo nginx -t -c /etc/nginx/nginx.conf
RailsAllowModRewrite on
PassengerUseGlobalQueue on
PassengerMaxPoolSize 30
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.
#
MEM_LIMIT = ARGV[0].to_i || 500
module Process
def self.running?(pid)
begin
/usr/bin/ree-gem
#!/bin/sh
/opt/ruby-enterprise-1.8.6-20081205/bin/gem $*
/usr/bin/ree-ruby
#!/bin/sh
/opt/ruby-enterprise-1.8.6-20081205/bin/ruby $*
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.
#
MEM_LIMIT = ARGV[0].to_i || 500
module Process
def self.running?(pid)
begin