Skip to content

Instantly share code, notes, and snippets.

View KristianLyng's full-sized avatar

Kristian Lyngstøl KristianLyng

View GitHub Profile
@KristianLyng
KristianLyng / backendbanning.vtc
Created June 15, 2011 07:33
Backend-initiated banning demonstrated with varnishtest
#!/usr/bin/env varnishtest
# Demo of backend-based banning for Varnish, using varnishtest
# Author: Kristian Lyngstol <kristian@bohemians.org>
#
# License: Consider it public domain.
#
# This is a varnishtest(1) program to demonstrated how a backend can pass
# along a ban through a regular header. It uses a dummy-server and
# dummy-client that doesn't do any logic to track users, which is far
# beyond the scope of the demo.
@KristianLyng
KristianLyng / HELLO-WORLD.cobol
Created June 10, 2013 16:32
This is what the world has been waiting for: Integration of COBOL and Varnish. http://kly.no/varnish/cobol.png
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
PROCEDURE DIVISION.
DISPLAY 'Hello, world'.