Skip to content

Instantly share code, notes, and snippets.

Avatar
🏄‍♂️
Surfing

Folke Lemaitre folke

🏄‍♂️
Surfing
View GitHub Profile
View gist:1007741
cluster:
name: engagor
network:
host: 0.0.0.0
gateway:
recover_after_nodes: 2
recover_after_time: 0m
expected_nodes: 3
View gist:1007894
[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 Dec 9, 2011
Gmail to OmniFocus
View gist:1453374
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 Dec 17, 2011
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
View olark body replace.js
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);
View responsifier.js
(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);
View gist:5348941
bootstrap.mlockall: true
# Cluster Settings
cluster:
name: engagor
routing:
allocation:
node_initial_primaries_recoveries: 100
node_concurrent_recoveries: 20
cluster_concurrent_rebalance: 10
View gist:5351982
bootstrap.mlockall: true
# Cluster Settings
cluster:
name: engagor
routing:
allocation:
node_initial_primaries_recoveries: 100
node_concurrent_recoveries: 20
cluster_concurrent_rebalance: 2
View cxstudio.css
.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;