Skip to content

Instantly share code, notes, and snippets.

View allnightlong's full-sized avatar

Tigran Kavanosyan allnightlong

View GitHub Profile
package minfact
import com.google.common.base.Stopwatch
import groovy.transform.CompileStatic
import groovy.transform.Memoized
import java.util.concurrent.TimeUnit
@CompileStatic
public class MinFact {
@allnightlong
allnightlong / erl_crash.dump
Created November 25, 2014 16:33
/var/log/riak-cs/erl_crash.dump
=erl_crash_dump:0.1
Tue Nov 25 16:30:52 2014
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,riak_cs,{invalid_bucket_props,{riak_cs_app,start,[normal,[]]}}})
System version: Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:64] [kernel-poll:true]
Compiled: Thu Jul 31 11:14:14 2014
Taints:
Atoms: 12991
=memory
total: 12489112
processes: 534316
@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'