To install the needed components you can use Homebrew
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var AWS = require('aws-sdk'); | |
| var http = require('http'); | |
| var httpProxy = require('http-proxy'); | |
| var express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var stream = require('stream'); | |
| if (process.argv.length != 3) { | |
| console.error('usage: aws-es-proxy <my-cluster-endpoint>'); | |
| process.exit(1); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | math.randomseed(os.time()) | |
| local charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
| function string.random(length) | |
| if length > 0 then | |
| return string.random(length - 1) .. charset:sub(math.random(1, #charset), 1) | |
| else | |
| return "" | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| # | |
| # Very basic example of using Python and IMAP to iterate over emails in a | |
| # gmail folder/label. This code is released into the public domain. | |
| # | |
| # RKI July 2013 | |
| # http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
| # | |
| import sys | |
| import imaplib |