Skip to content

Instantly share code, notes, and snippets.

View Romain-Geissler's full-sized avatar

Romain Geissler Romain-Geissler

View GitHub Profile
@Romain-Geissler
Romain-Geissler / Makefile
Created June 12, 2012 21:06
Array og generics in java
all:Test.class
test:all
java Test
%.class:%.java
javac '$<'
@Romain-Geissler
Romain-Geissler / test.sh
Created December 11, 2012 20:54
SSH connection multiplexing in sh (credentials asked only once with several ssh/scp commands).
#!/bin/sh
set -e;
BASE_DIRECTORY="$(cd "$(dirname "$0")"&&pwd)"
SSH_SOCKET="${BASE_DIRECTORY}"/%r.%h.%p.ssh_socket
SSH_HOST=localhost
#Exit ssh master connection when the script exits or is killed.
trap "ssh -q -o ControlMaster=no -o ControlPath=${SSH_SOCKET} -O exit ${SSH_HOST};" SIGINT SIGTERM EXIT;
@Romain-Geissler
Romain-Geissler / squid3.maverick.patch
Created December 14, 2013 16:29
Squid3-maverick-patch
diff --git a/compat/unsafe.h b/compat/unsafe.h
index d58f546..6c9f7ab 100644
--- a/compat/unsafe.h
+++ b/compat/unsafe.h
@@ -5,7 +5,7 @@
* Trap unintentional use of functions unsafe for use within squid.
*/
-#if !SQUID_NO_STRING_BUFFER_PROTECT
+#if !SQUID_NO_STRING_BUFFER_PROTECT && 0