Skip to content

Instantly share code, notes, and snippets.

View divideby0's full-sized avatar

Cedric Hurst divideby0

  • Spantree Technology Group, LLC
  • Chicago, IL
View GitHub Profile

Yellow

  1. Do you identify with people who suffer from mental illness? Why?
  2. Have you ever experienced discrimination? How did you feel in that moment?
  3. How do vou measure one's potential? Are aptitude tests effective?
  4. How do you find fulfillment?
  5. How do you love?
  6. Imagine yourself in the future. What will your greatest life accomplishment be?
  7. In there anything too serious to be joked about?
  8. Is zero-waste or sustainable consumption ableist? Why or why not?
@divideby0
divideby0 / keybase.md
Last active December 16, 2021 02:33
keybase.md

Keybase proof

I hereby claim:

  • I am divideby0 on github.
  • I am divideby0 (https://keybase.io/divideby0) on keybase.
  • I have a public key ASDLO6bS2AIWUXYf_Wh5k4Q2Js0AlA4wsOyIQZio88gcfQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am divideby0 on github.
  • I am divideby0 (https://keybase.io/divideby0) on keybase.
  • I have a public key whose fingerprint is 36F1 6902 5AB7 D5CF 3A4F 6EFE 02E8 5886 E7CC E86E

To claim this, I am signing this object:

@divideby0
divideby0 / docker-compose.yml
Created May 10, 2018 19:08 — forked from DanLindeman/docker-compose.yml
Docker Compose for jbpm and kie server execution server
version: "3.4"
services:
jbpm:
image: jboss/jbpm-workbench-showcase
environment:
- "JAVA_OPTS=-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false"
ports:
- "8080:8080"
- "8001:8001"
@divideby0
divideby0 / docker-compose.yml
Created December 4, 2017 18:19
Quick and Dirty ES 6 on Docker Compose
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
REGION=${REGION:-us-east-1}
UBUNTU_RELEASE=${UBUNTU_RELEASE:-trusty}
ARCH=${ARCH:-amd64}
INSTANCE_TYPE=${INSTANCE_TYPE:-hvm:ebs}
curl 'https://cloud-images.ubuntu.com/locator/ec2/releasesTable' --compressed | grep -Ei "\"$REGION\",\"$UBUNTU_RELEASE\",.*,\"$INSTANCE_TYPE\"" | grep -oEi "ami-\w+" | head -1
This file has been truncated, but you can view the full file.
{"year":2001,"make":"ACURA","model":"CL"}
{"year":2001,"make":"ACURA","model":"EL"}
{"year":2001,"make":"ACURA","model":"INTEGRA"}
{"year":2001,"make":"ACURA","model":"MDX"}
{"year":2001,"make":"ACURA","model":"NSX"}
{"year":2001,"make":"ACURA","model":"RL"}
{"year":2001,"make":"ACURA","model":"TL"}
{"year":2001,"make":"AM GENERAL","model":"HUMMER"}
{"year":2001,"make":"AMERICAN IRONHORSE","model":"CLASSIC"}
{"year":2001,"make":"AMERICAN IRONHORSE","model":"LEGEND"}
#!/usr/bin/env bash
set -o xtrace # trace what gets executed
set -o errexit # exit when a command fails.
set -o nounset # exit when your script tries to use undeclared variables
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DATA_DIR="${__dir}/containers/elasticsearch/data"
# Clear our example index
DELETE /vehicle
# Post a few car records with make, model and year
POST /vehicle/car/_bulk
{"index":{}}
{"make":"Saturn","model":"LW","year":2005}
{"index":{}}
{"make":"Honda","model":"Civic","year":2005}
{"index":{}}
# Create a few vehicles with different types
POST /vehicles_type_agg_test/_bulk
{"index":{"_id":"honda_civic","_type": "car"}}
{"make": "Honda", "model": "Civic"}
{"index":{"_id":"honda_accord","_type": "car"}}
{"make": "Honda", "model": "Accord"}
{"index":{"_id":"tesla_roadster","_type": "car"}}
{"make":"Tesla", "model": "Roadster"}
{"index":{"_id":"audi_a4","_type": "car"}}
{"make":"Audi", "model": "A4"}