Skip to content

Instantly share code, notes, and snippets.

View gquintana's full-sized avatar

Gerald Quintana gquintana

View GitHub Profile
@gquintana
gquintana / search2bulk.py
Created February 12, 2018 15:59
Convert Elasticsearch search result to Bulk data
#!/usr/bin/env python
import json
import sys
import os
def read_search(in_file_name):
with open(in_file_name, 'r') as json_file:
docs = json.load(json_file)
return docs
@gquintana
gquintana / ruby_test.adoc
Created January 8, 2017 08:41
AsciiDoc and Ruby

Ruby language

class Person
  def name             # <1> Get name
    @name
  end
  def name=(new_name)  # <2> Set name
    @name=new_name
@gquintana
gquintana / ruby_test.md
Created January 8, 2017 08:39
Markdown and Ruby

Ruby language

class Person
  def name             # Get name
    @name
  end
  def name=(new_name)  # Set name
    @name=new_name
 end