Skip to content

Instantly share code, notes, and snippets.

View folke's full-sized avatar
🌴
On vacation soon

Folke Lemaitre folke

🌴
On vacation soon
View GitHub Profile
cluster:
name: engagor
network:
host: 0.0.0.0
gateway:
recover_after_nodes: 2
recover_after_time: 0m
expected_nodes: 3
[2011-06-04 15:09:03,094][DEBUG][gateway.local ] [Captain Universe] [shard3108-2010-10][0]: throttling allocation [[shard3108-2010-10][0], node[null], [P], s[UNASSIGNED]] to [[Evilhawk‎][hEAaKAOgRA2N0SKiIYUOSQ][inet[/10.10.10.3:9300]]] on primary allocation
[2011-06-04 15:09:03,094][DEBUG][gateway.local ] [Captain Universe] [shard3108-2010-10][1]: throttling allocation [[shard3108-2010-10][1], node[null], [P], s[UNASSIGNED]] to [[Khaos][xwh20TwCQva4kCJklg0ahQ][inet[/10.10.10.4:9300]]] on primary allocation
[2011-06-04 15:09:03,094][DEBUG][gateway.local ] [Captain Universe] [shard3108-2010-10][2]: throttling allocation [[shard3108-2010-10][2], node[null], [P], s[UNASSIGNED]] to [[Evilhawk‎][hEAaKAOgRA2N0SKiIYUOSQ][inet[/10.10.10.3:9300]]] on primary allocation
[2011-06-04 15:09:03,094][DEBUG][gateway.local ] [Captain Universe] [shard3108-2010-11][0]: throttling allocation [[shard3108-2010-11][0], node[null], [P], s[UNASSIGNED]] to [[Khaos][xwh20TwCQva4kCJklg0ahQ][ine
@folke
folke / gist:1453374
Created December 9, 2011 21:29
Gmail to OmniFocus
javascript:(function(){
if(top.document == document) {
var msg = document.getElementById("canvas_frame");
if(msg){
subjectEl = msg.contentDocument.getElementsByClassName("hP");
subject = subjectEl[0].innerText;
bodyEl = msg.contentDocument.getElementsByClassName("adP");
body = bodyEl[0].innerText;
@folke
folke / dabblet.css
Created December 17, 2011 20:56
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
var newBody = "YOUR NEW BODY CONTENT";
var keep = $('#olark, #habla_beta_container_do_not_rely_on_div_classes_or_names')
.add($('iframe[src*=olark]').parent());
$('body').children().not(keep).remove();
$('body').prepend(newBody);
@folke
folke / cxstudio.css
Last active November 17, 2015 16:23
.br-brand-logo {
background: url(http://my.teslamotors.com/sites/all/modules/custom/tesla_d7_menu/logo.svg) no-repeat;
background-size: 140px 60px;
}
.br-btn-secondary {
background-color: rgba(0,0,0,0);
border: none;
color: white;
padding-top: 15px;
(function($){
var Responsifier = {
grid: [900, 768, 660, 560, 460, 360],
update: function() {
$('html').add('.responsive').each(function(){
var $el = $(this);
var w = $el.width();
_.each(Responsifier.grid, function(v){
if (w < v)
$el.addClass("responsive-" + v);
bootstrap.mlockall: true
# Cluster Settings
cluster:
name: engagor
routing:
allocation:
node_initial_primaries_recoveries: 100
node_concurrent_recoveries: 20
cluster_concurrent_rebalance: 10
bootstrap.mlockall: true
# Cluster Settings
cluster:
name: engagor
routing:
allocation:
node_initial_primaries_recoveries: 100
node_concurrent_recoveries: 20
cluster_concurrent_rebalance: 2