This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Prismic = require('prismic.io').Prismic; | |
var testRepo = 'https://your-repo.prismic.io/api'; | |
Prismic.Api(testRepo, function(err, api) { | |
if (err) console.log(err); | |
var id = api.bookmarks['dealOfTheWeek']; | |
console.log('id: ' + id); | |
api.form('everything').ref(api.master()).query('[[:d = at(document.id, "' + id + '")]]').submit(function(err, docs) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Prismic = require('prismic.io').Prismic; | |
var testRepo = 'https://your-repo.prismic.io/api'; | |
Prismic.Api(testRepo, function(err, api) { | |
if (err) console.log(err); | |
api.form('blogPosts').ref(api.master()).submit(function(err, docs) { | |
if (err) console.log(err); | |
for (var i = 0; i < docs.results.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Gitana = require('gitana'); | |
var repoId = 'someRepoId'; | |
conn = Gitana.connect({ | |
}, function(err) { | |
if (err) console.log(err); | |
}); | |
conn.readRepository(repoId).then(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Gitana = require('gitana'); | |
var repoId = 'someRepoId'; | |
conn = Gitana.connect({ | |
}, function(err) { | |
if (err) console.log(err); | |
}); | |
conn.readRepository(repoId).then(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Prismic = require('prismic.io').Prismic; | |
var testRepo = 'https://some-repo.prismic.io/api'; | |
var api; | |
Prismic.Api(testRepo, function(err, api) { | |
if (err) console.log(err); | |
// assumes a collection named 'content' | |
api.form('content').ref(api.master()).submit(function(err, docs) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var contentful = require('contentful'); | |
var spaceId = 'someSpaceId'; | |
var accessToken = 'someAccessToken'; | |
var contentTypeId = 'someContentTypeId'; | |
var client = contentful.createClient({ | |
space: spaceId, | |
accessToken: accessToken, | |
secure: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var contentful = require('contentful-management'); | |
var spaceId = 'someSpaceId'; | |
var accessToken = 'someAccessToken'; | |
var contentTypeId = 'someContentTypeId'; | |
var client = contentful.createClient({ | |
space: spaceId, | |
accessToken: accessToken, | |
secure: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"match_all": {} | |
}, | |
"filter": { | |
"bool": { | |
"must": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => [ "/Users/jpotts/Documents/code/es-test/results.csv"] | |
} | |
} | |
filter { | |
if ([message] =~ "responseCode") { | |
drop { } | |
} else { | |
csv { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"template": "logstash-jmeter-results-*", | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0, | |
"index.refresh_interval": "5s" | |
}, | |
"mappings": { | |
"logs": { | |
"properties": { |