Skip to content

Instantly share code, notes, and snippets.

@jfrost
jfrost / pgpool.conf
Last active August 29, 2015 14:07
pgpool2 watchdog config with sudo and ip addr instead of ifconfig
# Watchdog
#------------------------------------------------------------------------------
use_watchdog = on
delegate_IP = '10.10.10.100'
wd_hostname = '10.10.10.21'
wd_port = 9000
ifconfig_path = '/usr/bin'
arping_path = '/usr/bin'
if_up_cmd = 'sudo ip addr add $_IP_$ dev eth0'
if_down_cmd = 'sudo ip addr del $_IP_$ dev eth0'
@tototoshi
tototoshi / finagle_http_hello.scala
Created May 19, 2012 04:11
finagle-http で Hello, world.
package com.github.tototoshi.finagle_hack
import java.net.InetSocketAddress
import com.twitter.finagle.{Service, SimpleFilter}
import com.twitter.util.Future
import com.twitter.finagle.builder.{Server, ServerBuilder}
import com.twitter.finagle.http._
import com.twitter.finagle.http.path._
object HTTPServer {