This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Cache busting test" | |
server s1 { | |
rxreq | |
expect req.url == "/foo/svc.json?api-key=abc%20qwer1234&another=value&name=value" | |
txresp | |
} -start | |
varnish v1 -vcl+backend { | |
import std; | |
sub vcl_recv { | |
if (req.url ~ "_=[0-9]+") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: rtorrent | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/stop rtorrent daemon | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <string.h> | |
#include <maxminddb.h> | |
#include "vmod_geo.h" | |
#ifndef DEBUG | |
#define DEBUG 0 | |
#endif | |
static MMDB_s mmdb_handle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <maxminddb.h> | |
#include "vrt.h" | |
#include "bin/varnishd/cache.h" | |
#include "include/vct.h" | |
#include "vcc_if.h" | |
// lookup a city | |
const char* |