Skip to content

Instantly share code, notes, and snippets.

Ratpack Production Tunings

# cat /etc/security/limits.conf

*         hard    nofile      500000
*         soft    nofile      500000
root      hard    nofile      500000
root      soft    nofile      500000
@joshlong
joshlong / gist:9905863
Created April 1, 2014 01:12
As long as neither of the beans is used until later, this will work. Each bean will have a proxy to the real bean which will be materialized the first time it's needed.
@Configuration
class ASolutionForCircularDependencies {
@Bean
A a( @Lazy B b) {
return new A(b);
}
@Bean
@timyates
timyates / README.md
Created August 16, 2012 14:00
Run core.logic Clojure script from Groovy
@gasman
gasman / pnginator.rb
Created April 30, 2012 18:08
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos