Skip to content

Instantly share code, notes, and snippets.

View wshirey's full-sized avatar

Wally S wshirey

  • Shipt
View GitHub Profile
swagger: "2.0"
info:
description: Sample description
version: "1.0.0"
title: Sample title
host: petstore.swagger.io
basePath: /v3
paths:
/carts/{cart_id}/product_bundles/{product_bundle_id}/questions:
get:
@wshirey
wshirey / pet.yaml
Last active October 27, 2017 16:23
pet swagger example with additionalproperties
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
@wshirey
wshirey / ngram_analyzer_multifield.json
Last active August 17, 2017 21:49
elasticsearch ngram analyzer with multifields
DELETE my_index
PUT my_index
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"filter": ["english_stop", "lowercase"],
"tokenizer": "my_tokenizer"
@wshirey
wshirey / index_alias_per_client_example.json
Last active June 23, 2017 15:22
index alias per client example
# clear out any previous test data
DELETE test*/
# create index 1
POST test.1/test/1
{
"client_id": 9991
}
# create index 2
@wshirey
wshirey / aggregation-snippets.json
Last active June 2, 2017 17:46
elasticsearch demo snippets
# How many of each program types are available?
GET programs-han/_search
{
"size": 0,
"aggs": {
"types": {
"terms": {
"field": "type.keyword",
"size": 5
}
swagger: '2.0'
info:
version: '1.0.0'
title: Swagger Petstore (Simple)
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
termsOfService: http://helloreverb.com/terms/
contact:
name: Swagger API team
email: foo@example.com
url: http://swagger.io
@wshirey
wshirey / docker-compose-postgres.yml
Created July 11, 2016 19:12 — forked from toast38coza/docker-compose-postgres.yml
Docker-compose files for Kong
version: "2"
services:
postgres:
image: postgres:9.4
container_name: kong-database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
@wshirey
wshirey / ci-docker.yml
Created April 29, 2016 17:02
Docker Compose file for Jenkins & SonarQube
jenkins:
image: jenkins
ports:
- "8080:8080"
- "50000:50000"
sonarqube:
image: sonarqube
ports:
- "9000:9000"
@wshirey
wshirey / 0_reuse_code.js
Created April 22, 2016 14:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wshirey
wshirey / machine_fakes_cheat_sheet.md
Last active May 8, 2019 13:45
Machine Fakes Cheat Sheet