Skip to content

Instantly share code, notes, and snippets.

View bleskes's full-sized avatar

Boaz Leskes bleskes

  • MotherDuck
  • Amsterdam
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bleskes on github.
  • I am bleskes (https://keybase.io/bleskes) on keybase.
  • I have a public key ASDr93gCwQknql7L5Cmfjhcuqm0upr6NEW0AbxsCH3k9Dgo

To claim this, I am signing this object:

#!/bin/bash
#
# esdiagdump
#
# Usage: esdiagdump [-h <hostname/IP>:<port>] [-o <output filename>]
# hostname defaults to localhost
# output file defaults to current directory/esdiagdump.out.<timestamp>
#
# TODO:
# - Support for collecting marvel indices for export
@bleskes
bleskes / sense.json
Last active December 25, 2015 04:29
test sense doc
POST _search
{
"query": { "match_all": {} }
}
Caused by: java.io.FileNotFoundException: /home/slave/jenkins/workspace/ElasticSearch/data/test-cluster-debian6-amd64/nodes/1/indices/test/0/index/_9.tvx (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:441)
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:306)
@bleskes
bleskes / gist:3532592
Created August 30, 2012 16:36
georss missing namespace definition
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:google="http://base.google.com/ns/1.0" xml:lang="en-US" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns="http://www.w3.org/2005/Atom" xmlns:twitter="http://api.twitter.com/">
<id>tag:search.twitter.com,2005:search/mcdonalds</id>
<link type="text/html" href="http://search.twitter.com/search?q=mcdonalds" rel="alternate"/>
<link type="application/atom+xml" href="http://search.twitter.com/search.atom?q=mcdonalds" rel="self"/>
<title>mcdonalds - Twitter Search</title>
<link type="application/opensearchdescription+xml" href="http://twitter.com/opensearch.xml" rel="search"/>
<link type="application/atom+xml" href="http://search.twitter.com/search.atom?since_id=241202650102775809&amp;q=mcdonalds&amp;lang=nl&amp;result_type=recent" rel="refresh"/>
<updated>2012-08-30T15:56:07Z</updated>
<openSearch:itemsPerPage>100</openSearch:itemsPerPage>
@bleskes
bleskes / gist:2659155
Created May 11, 2012 11:39
A WSGI Middleware to interact with Heapy
class HeapyMiddleware(object):
""" WSGI middlware to activate heapy """
def __init__(self,app):
self.app = app
def __call__(self, environ, start_response):
if environ.get("PATH_INFO") == "/__heapy__":
# dump a heapy analysis when the url __heapy__ is called
from guppy import hpy