Skip to content

Instantly share code, notes, and snippets.

View onicollet's full-sized avatar

Olivier Nicollet onicollet

  • Neofi Solutions
  • Leyment, Ain, France
View GitHub Profile
@onicollet
onicollet / ufw.md
Last active August 29, 2015 14:16 — forked from kimus/ufw.md

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@Grab('org.mortbay.jetty:jetty-embedded:6.1.26')
import static org.mortbay.jetty.Handler.DEFAULT
import org.mortbay.jetty.Server
import org.mortbay.jetty.servlet.Context
import org.mortbay.jetty.servlet.DefaultServlet
import org.mortbay.servlet.MultiPartFilter
import groovy.servlet.GroovyServlet
import groovy.servlet.TemplateServlet
@onicollet
onicollet / haproxy.cfg
Last active August 29, 2015 14:02
HAPROXY sample conf
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
log global