Skip to content

Instantly share code, notes, and snippets.

View jlmonteiro's full-sized avatar

Jorge Luiz Monteiro jlmonteiro

View GitHub Profile
@jtheoof
jtheoof / gist:2880413
Created June 6, 2012 07:23
pre-commit SVN hook to prevent a commit if Jenkins is building or build is broken
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the path to this repository)
@slevine
slevine / Mailer.groovy
Created December 24, 2009 19:29
Groovy Mailer
import javax.mail.Session
import javax.mail.Message
import javax.mail.internet.MimeMessage
import javax.mail.internet.InternetAddress
@Grapes([
@Grab(group = 'javax.activation', module = 'activation', version = '1.1'),
@Grab(group = 'javax.mail', module = 'mail', version = '1.4')
])