Skip to content

Instantly share code, notes, and snippets.

View kaworu's full-sized avatar

Alexandre Perrin kaworu

View GitHub Profile
<?php
header('HTTP/1.1 304 Not Modified');
header('X-Answer: 42');
--- source/_includes/custom/head.html.orig 2014-09-10 17:43:58.389757121 +0200
+++ source/_includes/custom/head.html 2014-09-10 17:43:06.805756153 +0200
@@ -1,3 +1,4 @@
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<!-- <link href="{{ root_url }}/assets/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"> -->
<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
$ORIGIN kaworu.ch.
$TTL 21600 ; 6h
@ IN SOA ns0 hostmaster (
2014073001 ; sn = serial number
172800 ; ref = refresh = 2d (we use notify)
300 ; ret = update retry = 5m
604800 ; ex = expiry = 1w
3600 ; nx = nxdomain ttl = 1h
)
#!/bin/sh
#
# update (pull) some Git repos in a given directory.
#
# config example:
# daily_git_pull_enable="YES"
# daily_git_pull_user="alex"
# daily_git_pull_dir="/home/alex/github"
# If there is a global system configuration file, suck it in.
/*
* md2.c
*
* "Naive" [MD2](https://tools.ietf.org/html/rfc1319)) implementation for
* self-educating purpose, please do *not* use it.
*
* License: CC0, see https://creativecommons.org/publicdomain/zero/1.0/
*/
#include <assert.h>
#include <stdio.h>
# kaworu.ch
zone:
name: "kaworu.ch"
zonefile: "master/kaworu.ch.db.signed"
# ns.kimsufi.com
notify: 213.186.33.199 NOKEY
provide-xfr: 213.186.33.199 NOKEY
/*
* t_ftgeneric.c
*
* a generic tagutil backend, using TagLib.
*/
#include "t_config.h"
#include <tag_c.h>
#include "t_file.h"
diff --git a/t_fttaglib.c b/t_fttaglib.c
index ca90766..c1535e6 100644
--- a/t_fttaglib.c
+++ b/t_fttaglib.c
@@ -103,59 +103,63 @@ t_fttaglib_read(void *opaque)
return (NULL);
/*
- * we're abusing assert, mainly because TagLib does not document what
- * happen on error. There is a lot of duplication but it's ok because
--- /usr/local/etc/nsd/tengu-slave.nsd.conf.old 2014-07-25 12:57:18.000000000 +0200
+++ /usr/local/etc/nsd/tengu-slave.nsd.conf 2014-07-25 12:57:52.000000000 +0200
@@ -101,3 +101,11 @@
request-xfr: 46.4.46.73 NOKEY
allow-notify: 2a01:4f8:130:608d::dead:beef NOKEY
request-xfr: 2a01:4f8:130:608d::dead:beef NOKEY
+
+zone:
+ name: "onionbean.ch"
+ zonefile: "slave/tengu/onionbean.ch.db"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct s {
char *str;
};
int