Skip to content

Instantly share code, notes, and snippets.

View kaaloo's full-sized avatar

Luis Arias kaaloo

View GitHub Profile
@kitek
kitek / gist:1579117
Created January 8, 2012 17:50
NodeJS create md5 hash from string
var data = "do shash'owania";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");
@AlBaker
AlBaker / DailyBatch.groovy
Created May 27, 2011 17:41
Groovy Quartz and Spring Batch
package org.test.quartz.jobs;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.launch.JobLauncher;
class DailyBatch {
static triggers = {
simple name:'simpleTrigger', startDelay:90000, repeatInterval: 600000
@allnightlong
allnightlong / resources.groovy
Created April 19, 2011 20:25
Grails way to configure connection pool other than legacy dbcp
import com.jolbox.bonecp.BoneCPDataSource
import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
import org.codehaus.groovy.grails.commons.ApplicationHolder as AH
import com.burtbeckwith.grails.plugin.datasources.DatasourcesBuilder
import grails.util.Environment
beans = {
def ds = CH.config.dataSource
def dsClosure = { bean ->
bean.destroyMethod = 'close'