Skip to content

Instantly share code, notes, and snippets.

View lkarsten's full-sized avatar

Lasse Karstensen lkarsten

View GitHub Profile
diff --git a/man/Makefile.am b/man/Makefile.am
index 35a8c52..0c93e1b 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -17,7 +17,7 @@ dist_man_MANS = \
vmod_directors.3 \
vmod_std.3
-MAINTAINERCLEANFILES = $(dist_man_MANS)
+CLEANFILES = $(dist_man_MANS)
From a1d9d3122e780bb7d4c384eb668398089ced5df3 Mon Sep 17 00:00:00 2001
From: Lasse Karstensen <lasse.karstensen@gmail.com>
Date: Sat, 16 Jan 2016 15:32:16 +0100
Subject: [PATCH] Handle missing waiting list gracefully.
In 5c8268062bf06a2700dd27331c29c48d650c9197 the checks are relaxed,
but this commit (or part of) was not brought into 4.1.
---
bin/varnishd/cache/cache_hash.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@lkarsten
lkarsten / gist:8039861
Created December 19, 2013 14:24
Varnish 3.0 to 4.0.
diff --git a/src/vmod_policy.c b/src/vmod_policy.c
index 7f6edd9..d22c1f3 100644
--- a/src/vmod_policy.c
+++ b/src/vmod_policy.c
@@ -7,7 +7,7 @@
#include "vrt.h"
#include "vsb.h"
-#include "bin/varnishd/cache.h"
+#include "cache/cache.h"
#!/usr/bin/env python
# .- coding: utf-8 -.
import datetime, locale
#locale.setlocale(locale.LC_ALL, "nb_NO.UTF-8")
today = datetime.datetime.now()
then = datetime.datetime(year=2013, month=5, day=16, hour=6, minute=30)
then_baat = datetime.datetime(year=2013, month=5, day=18, hour=12, minute=00)
@lkarsten
lkarsten / hitch.service
Last active November 6, 2015 14:15
hitch systemd
[Unit]
Description=hitch
After=syslog.target network.target
[Service]
Type=forking
#Restart=on-failure
LimitNOFILE=131072
Environment="HITCH_OPTIONS=--config /etc/hitch/hitch.conf"
ortant {
color: red;
font-weight: bold;
font-size: 110%;
padding: 4px;
width: 80%;
}
.spacedtable {
margin: 10px;
sub vcl_hash {
hash_data(req.url);
if (req.http.X-newhash) {
hash_data(req.http.X-newhash);
}
if (req.http.host) {
hash_data(req.http.host);
} else {
hash_data(server.ip);
}
lkarsten@hotel:~/work/gnuradio/gnuradio-examples/python$ diff --unified=1000 usrp/usrp_wfm_rcv.py usrp2/usrp2_wfm_rcv.py
--- usrp/usrp_wfm_rcv.py 2010-09-05 21:53:14.000000000 +0200
+++ usrp2/usrp2_wfm_rcv.py 2010-10-15 22:37:52.000000000 +0200
@@ -1,305 +1,288 @@
#!/usr/bin/env python
#
-# Copyright 2005,2006,2007,2009 Free Software Foundation, Inc.
+# Copyright 2005,2006,2007,2008,2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
vcl 4.0;
import std;
import directors;
backend a1 { .host = "192.0.2.11"; }
backend b1 { .host = "192.0.2.11"; }
sub vcl_init {
new hdir = directors.hash();