Skip to content

Instantly share code, notes, and snippets.

View ruthgrace's full-sized avatar

Ruth Grace Wong ruthgrace

View GitHub Profile
Dev Phase
* Circuitry grossly working
* Mechanical parts designed at a high level
Prototype Validation Phase
* Validate that product can be built in final form factor
Engineering Validation Test
* Electrical validation
* Mechanical reliability testing
# This script assumes you have a directory called elasticsearch with your pickled data in files elasticsearch_X.pickle
import pickle
from elasticsearch import Elasticsearch
### CHANGE THESE CONSTANTS TO MATCH THE ELASTICSEARCH CLUSTER YOU'RE MIGRATING TO ###
ES_HOST = "my-aws-hosted-elasticsearch.us-east-1.es.amazonaws.com"
ES_PORT = 80
ES_INDEX = "my_index"
ES_DOC_TYPE = "feed"
# To run this script make a directory called elasticsearch for your data.
# Note that this script won't work if your data is too big for local disk.
import pickle
from elasticsearch import Elasticsearch
### CHANGE THESE CONSTANTS TO MATCH THE ELASTICSEARCH CLUSTER YOU'RE MIGRATING FROM ###
ES_HOST = "example.elasticsearch.url.com"
ES_PORT = 9200
ES_INDEX = "my_index_name"
@ruthgrace
ruthgrace / example.md
Created July 9, 2016 00:30 — forked from lee-dohm/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot of noisy logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>