Skip to content

Instantly share code, notes, and snippets.

View quag's full-sized avatar

Jonathan Wright quag

View GitHub Profile
include $(GOROOT)/src/Make.$(GOARCH)
TARG=example
GOFILES=\
example.go\
a.go\
include $(GOROOT)/src/Make.cmd
angle1 := Random value(-4, 6) round
angle2 := angle1 - 5 + Random value(-2, 2) round
angle3 := angle2 - 5 + Random value(-2, 2) round
System system(
"""convert
#{Path with(rootFolder, gallery, "thumb", imageName)}
-thumbnail 192x192
-bordercolor white -border 6
-bordercolor grey60 -border 1
From ff3478bf5d3cd38e8e2a23590192c1e33f466eb3 Mon Sep 17 00:00:00 2001
From: Jonathan Wright <quaggy@gmail.com>
Date: Tue, 30 Dec 2008 19:26:25 +1300
Subject: [PATCH] Build LZO addon against liblzo instead of minilzo
---
addons/LZO/build.io | 1 +
addons/LZO/source/IoLZODecoder.h | 2 +-
addons/LZO/source/IoLZOEncoder.h | 2 +-
addons/LZO/source/lzoconf.h | 413 ----
@quag
quag / safe.io
Created December 23, 2008 00:34
A little script using http://github.com/quag/ulimit to execute untrusted code
memoryLimit := 20 * 2**10
cpuLimitPerCommand := 2 # in integer seconds
resetTimeLimit := method(
ULimit setCPUTimeLimit(Date clock ceil + cpuLimitPerCommand)
)
Sandbox makeSafe := method(
doSandboxString("Importer turnOff")