Skip to content

Instantly share code, notes, and snippets.

View atreceno's full-sized avatar

Agustin Treceno atreceno

View GitHub Profile
@atreceno
atreceno / dt_result.xml
Created December 12, 2013 22:18
DT_RESULT example
<OdfBody DocumentCode="ATM012101" DocumentType="DT_RESULT"
FeedFlag="P" Date="20120808" Time="212121102" LogicalDate="20120808"
Venue="STA" Version="1" ResultStatus="OFFICIAL" Serial="421">
<Result ResultType="IRM" IRM="DQ" SortOrder="8">
<Competitor Code="1083553" Type="A">
<Composition>
<Athlete Code="1083553" Order="1">
<ExtendedResults>
<ExtendedResult Code="AT_REACT_TIME" Type="UER_ATH_AT"
Value="0.159" />
<?xml version="1.0" encoding="utf-8"?>
<OdfBody DocumentCode="AT0000000" Serial="250428" Time="170759394"
Date="20120712" FeedFlag="P" LogicalDate="20120712" DocumentType="DT_PARTIC"
Version="51">
<Competition Code="OG2012">
<Participant Code="1083553" Parent="1083553" Status="ACCRED"
GivenName="Dayron" FamilyName="Robles" PrintName="ROBLES Dayron"
PrintInitialName="ROBLES D" TVName="Dayron ROBLES" TVInitialName="D. ROBLES"
Gender="M" Organisation="CUB" BirthDate="19861119" PlaceofBirth="ISLA DE LA JUVENTUD"
CountryofBirth="CUB" Nationality="CUB" MainFunctionId="AA01"
@atreceno
atreceno / siege-3.0.4.patch
Created October 12, 2013 17:00
Patch for Siege 3.0.4
diff -Naur siege-3.0.4/src/client.c siege-3.0.4-dev/src/client.c
--- siege-3.0.4/src/client.c 2013-09-11 20:43:39.000000000 +0100
+++ siege-3.0.4-dev/src/client.c 2013-10-09 12:13:36.000000000 +0100
@@ -763,11 +763,12 @@
URL ret;
char * url;
size_t len = strlen(url_get_absolute(req)) + strlen(location) + 32;
+ debug("%s:%d Normalizing location:\t%s", __FILE__, __LINE__, location);
if (strchr(location, ':') != NULL) {
// it's very likely normalized