Skip to content

Instantly share code, notes, and snippets.

View hub-cap's full-sized avatar

Michael Basnight hub-cap

View GitHub Profile
### Keybase proof
I hereby claim:
* I am hub-cap on github.
* I am mbasnight (https://keybase.io/mbasnight) on keybase.
* I have a public key ASB6MpMYTKdf46jQB91VhXmHjcMtZPSgFJDvN9sFdsOy6go
To claim this, I am signing this object:
package org.elasticsearch.gradle
class VersionCollectionTest extends GroovyTestCase {
String formatVersion(String version) {
return " public static final Version V_${version.replaceAll("\\.", "_")} "
}
def allVersions = [formatVersion('5.0.0'), formatVersion('5.0.0_alpha1'), formatVersion('5.0.0_alpha2'), formatVersion('5.0.0_beta1'),
formatVersion('5.0.0_rc1'),formatVersion('5.0.0_rc2'),formatVersion('5.0.1'), formatVersion('5.0.2'),
formatVersion('5.1.1'), formatVersion('5.1.2'), formatVersion('5.2.0'), formatVersion('5.2.1'), formatVersion('6.0.0'),
% curl localhost:9200/_cat/nodes ##### 2 node cluster
127.0.0.1 25 100 20 2.44 mdi - qKD-e03
127.0.0.1 12 100 29 2.44 mdi * qxG7nuF
% curl localhost:9200/_foo ##### 5.6 node, a 400
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_foo]"}],"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_foo]"},"status":400}
% curl localhost:9201/_foo ##### 6.0 node, a 404
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"_foo","index":"_foo"}],"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"_foo","index":"_foo"},"status":404}
** Kill the 5.6 node **
1> [2017-09-15T01:14:40,053][INFO ][o.e.i.r.ReindexClientYamlTestSuiteIT] [test {yaml=reindex/90_remote/Reindex from remote that you can't connect to}]: after test
1> [2017-09-15T01:14:40,056][INFO ][o.e.i.r.ReindexClientYamlTestSuiteIT] Stash dump on failure [{
1> "stash" : {
1> "body" : {
1> "error" : {
1> "root_cause" : [
1> {
1> "type" : "status_exception",
1> "reason" : "body=No such site at :80",
1> "stack_trace" : "ElasticsearchStatusException[body=No such site at :80]; nested: ResponseException[GET http://127.0.0.1:0/: HTTP/1.1 404 Not Found
elasticsearch0 | [2017-08-16T14:02:05,010][TRACE][o.e.d.z.ZenDiscovery ] [QtBjZWS] full ping responses:
elasticsearch0 | --> ping_response{node [{YfH0pll}{YfH0pllrTLOvl9kWRlR5HQ}{v9vf5XpmR3ix03zvftqLXA}{elasticsearch1}{172.18.0.2:9300}], id[9], master [null],cluster_state_version [-1], cluster_name[docker-cluster]}
elasticsearch0 | [2017-08-16T14:02:05,010][DEBUG][o.e.d.z.ZenDiscovery ] [QtBjZWS] filtered ping responses: (ignore_non_masters [false])
elasticsearch0 | --> ping_response{node [{YfH0pll}{YfH0pllrTLOvl9kWRlR5HQ}{v9vf5XpmR3ix03zvftqLXA}{elasticsearch1}{172.18.0.2:9300}], id[9], master [null],cluster_state_version [-1], cluster_name[docker-cluster]}
elasticsearch0 | --> ping_response{node [{QtBjZWS}{QtBjZWS2QDiwYd30394TgQ}{_BxOtw3aR3Wxz4TntFhCgA}{elasticsearch0}{172.18.0.3:9300}], id[9], master [null],cluster_state_version [-1], cluster_name[docker-cluster]}
elasticsearch0 | [2017-08-16T14:02:05,014][TRACE][o.e.d.z.ZenDiscovery ] [QtBjZWS] candidate Candidate
#+LANGUAGE: en
#+PROPERTY: header-args :eval no :results output replace :noweb no :tangle no
#+PROPERTY: header-args:emacs-lisp :noweb yes :tangle .emacs.d/init.el
#+STARTUP: fold nodlcheck lognotestate content
* Introduction
I stole this from Lee Hinman (https://github.com/dakrone).
** Init stuffs
Here is some stuff
>>> cbor.loads('the dude abides')
u'\x00\x00\U0091de20\x00,\x00\Uffffffff\Uffffffff\x00\U75706e69\U666f2074\U6b6e7520\U6e776f6e\U70797420\U6f6e2065\U79622074\U20736574\U6220726f\U61657479\U79617272'
#!/usr/bin/python
'''
This script takes 2 items.
1) Your bitlbee xml file.
2) A generated hipchat API user list.
'''
from sys import argv
import simplejson
from lxml import etree as et
class jarvis (..)
{
..
redis::instance { 'redis-jarvis':
redis_bind_address => '127.0.0.1'
}
..
}