Skip to content

Instantly share code, notes, and snippets.

@straux
straux / gist:07b72730f763a5f550df
Created September 16, 2014 09:18
Titan graph open() blocking when connecting to hbase
[nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
703064 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.7.0_65
703064 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation
703064 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.home=/usr/lib/jvm/java-7-openjdk-amd64/jre
703065 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
703065 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/tmp
703065 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=<NA>
703065 [nREPL-worker-3] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.name=Lin
@straux
straux / sigma.image.js
Created September 23, 2013 09:08
This plugin allows to export an image from a sigma.js instance.
// Stéphane Raux @ Linkfluence
// (requires sigma.js to be loaded)
sigma.publicPrototype.drawImage = function(bgColor,cb) {
var sigma = this._core;
var canvas = document.createElement('canvas');
canvas.setAttribute('width', sigma.width + 'px');
canvas.setAttribute('height', sigma.height + 'px');
@straux
straux / term_facets.sh
Created September 26, 2012 16:24
Elastic search terms facets : problems when performing script_field on an object with array
# test performed on elasticsearch-0.19.0.RC2 and elasticsearch-0.19.9
set -x
# delete index
curl -XDELETE '127.0.0.1:9200/test'
# create index
curl -XPUT '127.0.0.1:9200/test'
/home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/twitter-2.2.0/lib/twitter/response/raise_server_error.rb:13:in `on_complete': Something is technically wrong. (Twitter::Error::InternalServerError)
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/response.rb:9:in `block in call'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/response.rb:62:in `on_complete'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/response.rb:8:in `call'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/response.rb:8:in `call'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/response.rb:8:in `call'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/request/url_encoded.rb:14:in `call'
from /home/rauxstep/.rvm/gems/ruby-1.9.1-p431/gems/faraday-0.7.6/lib/faraday/request/multipart.rb:13:in `call'
from /home/rauxstep/