Skip to content

Instantly share code, notes, and snippets.

@guyzmo
guyzmo / strigi_osx10.6.8_homebrew.patch
Created December 16, 2012 15:46
Patch to be applied for homebrew's strigi.rb Formula.
diff --git a/libstreamanalyzer/include/strigi/analysisresult.h b/libstreamanalyzer/include/strigi/analysisresult.h
index 074fc43..0d7b37c 100644
--- a/libstreamanalyzer/include/strigi/analysisresult.h
+++ b/libstreamanalyzer/include/strigi/analysisresult.h
@@ -20,6 +20,8 @@
#ifndef STRIGI_ANALYSISRESULT_H
#define STRIGI_ANALYSISRESULT_H
+#include "/usr/include/time.h"
+
@guyzmo
guyzmo / freevpn0.029__platform__io.patch
Created November 29, 2012 17:11
Patch for strnlen support in freevpn (for OSX 10.6)
diff --git a/platform/io.c b/platform/io.c
index 209666a..0a6c2cf 100644
--- a/platform/io.c
+++ b/platform/io.c
@@ -24,6 +24,16 @@
#if defined(__FreeBSD__)
#define IO_BSD
#elif defined(__APPLE__)
+size_t strnlen(const char *s, size_t maxlen)
+{
@guyzmo
guyzmo / 0001-added-quotes-to-multiline-strings.patch
Created September 7, 2012 13:01
z.sh patch for multiline quotes
From 14916bac1a4bd4aa7382f84269852b626f09f98f Mon Sep 17 00:00:00 2001
From: Guyzmo <guyzmo....net>
Date: Fri, 7 Sep 2012 15:00:13 +0200
Subject: [PATCH] added quotes to multiline strings
---
z.sh | 70 ++++++++++++++++++++++++++++++++---------------------------------
1 files changed, 34 insertions(+), 36 deletions(-)
diff --git a/z.sh b/z.sh
@guyzmo
guyzmo / tornado_event_source_client.py
Created May 25, 2012 13:01
A Tornado-based library that enables Event Source support !
import sys
import argparse
import logging
log = logging.getLogger('eventsource.client')
from tornado.ioloop import IOLoop
from tornado.httpclient import AsyncHTTPClient, HTTPRequest
class Event(object):
def __init__(self):