Skip to content

Instantly share code, notes, and snippets.

View rayward's full-sized avatar

Ray Ward rayward

  • BigCommerce
  • Sydney
View GitHub Profile
{
"my_type": {
"properties": {
"my_field": {
"type": "string",
"fields": {
"not_analyzed": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
@rayward
rayward / gist:10068721
Created April 7, 2014 22:26
keybase.md

Keybase proof

I hereby claim:

  • I am rayward on github.
  • I am rayward (https://keybase.io/rayward) on keybase.
  • I have a public key whose fingerprint is 3352 E951 77FE 6F7E 70CE 7386 BCC1 29DF 46C7 2BEF

To claim this, I am signing this object:

@rayward
rayward / .travis.sh
Last active December 31, 2015 17:08
phpunit segfault detection wrapper
#!/bin/bash
# PHP's garbage collector on occasion segfaults upon shutdown.
# This script detects a successful build by looking for 'OK' and then terminates successfully.
set -o pipefail
testcommand="vendor/bin/phpunit -dmemory_limit=-1 --stderr --configuration $1"
$testcommand 2>&1 | sudo tee phpunit-output