Skip to content

Instantly share code, notes, and snippets.

@jbrook
jbrook / README.md
Created January 23, 2013 20:01 — forked from fnichol/README.md

orderup

Description

Creates a tarball of Chef cookbooks from a Berksfile or Cheffile for chef-solo.

Installation

Copy the program to your local machine (perhaps ~/bin?) and install Berkshelf or Librarian-Chef:

require 'rubygems'
require 'grok-pure'
# Set a new matcher
grok = Grok.new
# Load default and custom patterns
grok.add_patterns_from_file("/etc/logstash/patterns/default")
grok.add_patterns_from_file("/etc/logstash/patterns/mycustoms")
@jbrook
jbrook / api.feature
Created April 9, 2012 23:02 — forked from guenter/api.feature
Snippets for testing REST APIs with Cucumber and friends
Feature: API
In order to use the service from third party apps
As a user
I want to be able to use an API
Background:
Given a user exists # Pickle
And I login as the user using basic auth
Scenario Outline: Get a ticket
@jbrook
jbrook / es.txt
Created April 9, 2012 22:50 — forked from karussell/Query-DSL-elasticsearch.txt
Bird's Eye View on ElasticSearch its Query DSL
Several times in a month there pop up questions regarding query structure on the ElasticSearch user group.
Although there are good docs explaining this in depth probably the bird view of the Query DSL is necessary to
understand what is written there. There is even already some good external documentation available:
http://www.elasticsearch.org/tutorials/2011/08/28/query-dsl-explained.html
And there were attempts to define a schema:
http://groups.google.com/group/json-schema/browse_thread/thread/ae498ee818155d50
https://gist.github.com/8887766ca0e7052814b0