Skip to content

Instantly share code, notes, and snippets.

////////////////////////////////////////////////////////////////////////////////////
// getbs.js - Copyright (c) 2013 Pehr Johansson <pehr.l.johansson@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@dunse
dunse / cuanto-db.groovy
Created September 25, 2012 13:56
Sample Cuanto DB configuration
production {
dataSource {
username = "cuanto"
password = "cuanto"
driverClassName = "com.mysql.jdbc.Driver"
url = "jdbc:mysql://localhost:3306/cuanto?autoreconnect=true"
}
}
@dunse
dunse / prettycron.js
Created September 13, 2012 15:08
Script to produce human readable cron schedule
////////////////////////////////////////////////////////////////////////////////////
// prettycron.js - Copyright (c) 2012 Pehr Johansson <pehr.l.johansson@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of