Skip to content

Instantly share code, notes, and snippets.

View divideby0's full-sized avatar

Cedric Hurst divideby0

  • Spantree Technology Group, LLC
  • Chicago, IL
View GitHub Profile
@divideby0
divideby0 / docker-compose.yml
Created April 12, 2016 16:50
ELK reference setup
version: "2"
services:
elasticsearch:
image: elasticsearch
ports:
- 9200:9200
kibana:
image: kibana
ports:
- 5601:5601
@divideby0
divideby0 / docker-compose.yml
Created March 22, 2016 15:26
ELK Docker Compose Boilerplate
# Boilerplate ELK setup in Docker Compose
version: "2"
services:
elasticsearch:
image: elasticsearch
ports:
- 9200:9200
kibana:
image: kibana

Two degrees of Cortextual

Create the things

// Create people
CREATE (freethejazz: Person { name: "Jonathan Freeman" }),
       (amrita: Person { name: "Amrita Chavan" }),
Expected: <true>
but: was <false>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests$ClusterStateMonitor.await(ZooKeeperDiscoveryTests.java:720)
at com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests.testMasterSwitchDuringSessionExpiration(ZooKeeperDiscoveryTests.java:345)
testNonMasterSessionExpiration(com.sonian.elasticsearch.zookeeper.discovery.ZooKeeperDiscoveryTests) Time elapsed: 15.322 sec <<< FAILURE!
java.lang.AssertionError:
Expected: <true>
.sessions h4 {
margin-bottom: 0;
}

It’s possible that containers and container management tools like Docker will be the single most important thing to happen to the data center since the mainstream adoption of hardware virtualization in the 90s. In the past 12 months, the technology has matured beyond powering large-scale startups like Twitter and Yelp and found its way into the data centers of major banks, retailers and even NASA. When I first heard about Docker a couple years ago, I started off as a skeptic. I blew it off as skillful marketing hype around an old concept of Linux containers. But after incorporating it successfully into several p

{
"took": 7,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 13,
%{IPORHOST:clientip} - - \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) "(?:%{URI:referrer}|-)" %{QS:agent}
#!/bin/bash
IP=`ifconfig en0 inet | grep inet | sed 's/.*inet *//; s/ .*//'`
CN="${IP##*.}"
sed -i "s/node.name: .*/node.name: es-${CN}/" /etc/elasticsearch/elasticsearch.yml

Pivotal just announced it’s decision to stop sponsoring and funding the development of the popular Groovy and Grails Open Source projects. As a result, both Groovy and Grails are looking for new sponsors willing to further help develop the projects full steam!

The Groovy programming language has been around for a while for more than 11 years. During that time, it has nicely evolved from a side hobby project to the very mature and successful alternative language it is today, used by Fortune 500 companies throughout the world, in various projects and contexts.

With 1.7 million downloads in 2012, 3 million in 2013, and well over 4 million in 2014 (definitive numbers still need to be calculated), Groovy is leading the pack of the JVM language ecosystem, and continues seeing positive growth.

There are many ideas the Groovy team wants to develop further, features we w