This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
NewerOlder