Skip to content

Instantly share code, notes, and snippets.

CURL *curl;
char errbuf[1024];
curl = curl_easy_init();
if (! curl) {
fprintf(stderr, "Cannot initialize curl\n");
return 1;
}
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
checkDcls :: Program -> Result
checkDcls l =
let t = Map.fromList (map extract
(filter is_declaration l)) in
foldl combine (True, Nothing) (map (test_declaration t)
(filter is_transition l))
WSGIDaemonProcess bortzmeyer.org processes=3 threads=10 display-name=%{GROUP}
WSGIProcessGroup bortzmeyer.org
<Directory /var/www/www.bortzmeyer.org/wsgis>
Options -Indexes -Multiviews +ExecCGI
Order allow,deny
Allow from all
</Directory>
% git log
commit 4d10b9c920c4925d93df760a042395a23261be0e
Author: Stephane Bortzmeyer &lt;stephane+github@bortzmeyer.org&gt;
Date: Sat Mar 13 13:15:13 2010 +0100
Better description of the reflector
func readShortInteger(buf *bytes.Buffer) (uint16, bool) {
slice := make([]byte, 2)
n, error := buf.Read(slice[0:2])
if error != nil || n != 2 {
if debug > 2 {
fmt.Printf("Error in Read of an int16: %s (%d bytes read)\n", error, n)
}
return 0, false
}
return binary.BigEndian.Uint16(slice[0:2]), true
package main
import (
"net"
"flag"
"os"
"fmt"
"strings"
)
#include "colors.inc"
camera {
location <8, 4, 0>
look_at <0, 0, 0>
}
light_source {<4, 10, 8 > color White}
light_source {<-5, 1, -2.5> color White} /* Right in the eyes but invisible */
-- Pseudo-code (syntax more or less Ada-like) to show what happens to
-- a DNS resolver when the root is signed and the responses become
-- larger.
-- Background information:
-- https://www.dns-oarc.net/oarc/services/replysizetest
-- RFC 5625
-- http://www.iis.se/docs/Routertester_en.Pdf
-- SSAC report #35 http://www.icann.org/committees/security/sac035.pdf
<?php
/***************************************************************************
* *
* These apply everywhere and will need setting *
* *
***************************************************************************/
/****************************
********* Mandatory *********
*****************************/
<VirtualHost *:80>
DocumentRoot /usr/share/webapps/davical/0.9.9/htdocs
DirectoryIndex index.php index.html
ServerName caldav.bortzmeyer.org
Alias /images/ /usr/share/webapps/davical/0.9.9/htdocs/images/
<Directory /usr/share/webapps/davical/0.9.9/htdocs/>
AllowOverride None
Order allow,deny
Allow from all
</Directory>