Skip to content

Instantly share code, notes, and snippets.

@chesster
chesster / new.json
Created January 25, 2018 16:25
sweet16
{
"59fb3ab7cd535a0011ea6667": [
{
"bool": {
"should": [
{
"nested": {
"ignore_unmapped": true,
"path": "personalDetails.addresses",
"query": {
@chesster
chesster / old.json
Created January 25, 2018 16:58
sweet16
{
"59fb3ab7cd535a0011ea6667": [
{
"bool": {
"should": [
{
"nested": {
"ignore_unmapped": true,
"path": "personalDetails.addresses",
"query": {
@chesster
chesster / oldnew.diff
Created January 25, 2018 16:59
sweet16
12c12
< "must": [
---
> "should": [
14,26c14,15
< "bool": {
< "should": [
< {
< "term": {
< "personalDetails.addresses.typeCode": "work"
@chesster
chesster / alert-toolkit.js
Created January 31, 2018 15:47
sade test
#!/usr/bin/env node
const app = require('sade')('alert-toolkit');
app
.version('1.0.0')
.option('--environment, -e', 'Environment to execute on', 'aslive')
.command('delete <id>')
.describe('Delete an alert with the given <id>')
@chesster
chesster / action.json
Last active March 1, 2018 12:42
actions
{
"id": "790300",
"action": "save",
"timestamp": 0,
"reasonCode": "bau",
"body": {
"meta": {
"version": 49254168,
"removed": false
},
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory