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
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); |
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
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)) |
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
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> |
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
% git log | |
commit 4d10b9c920c4925d93df760a042395a23261be0e | |
Author: Stephane Bortzmeyer <[email protected]> | |
Date: Sat Mar 13 13:15:13 2010 +0100 | |
Better description of the reflector |
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
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 |
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
package main | |
import ( | |
"net" | |
"flag" | |
"os" | |
"fmt" | |
"strings" | |
) |
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 "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 */ |
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
-- 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 |
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
<?php | |
/*************************************************************************** | |
* * | |
* These apply everywhere and will need setting * | |
* * | |
***************************************************************************/ | |
/**************************** | |
********* Mandatory ********* | |
*****************************/ |
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
<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> |
OlderNewer