Install HomeBrew
## Install xcode utils
xcode-select --install
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Install xcode utils
xcode-select --install
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install
will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
#!/bin/bash | |
# my testing was done with LXD/LXC so I had to set this on my hypervisor | |
# sysctl -w vm.max_map_count=262144 | |
# set elasticsearch cluster name: | |
ES_CLUSTER_NAME="myescluster" | |
# set elasticsearch nodes ip/dns that will be part of the elasticsearch cluster | |
ES_NODES='["10.0.0.2", "10.0.0.3"]' |
import csv, json, sys | |
#if you are not using utf-8 files, remove the next line | |
sys.setdefaultencoding("UTF-8") #set the encode to utf8 | |
#check if you pass the input file and output file | |
if sys.argv[1] is not None and sys.argv[2] is not None: | |
fileInput = sys.argv[1] | |
fileOutput = sys.argv[2] | |
inputFile = open(fileInput) #open json file | |
outputFile = open(fileOutput, 'w') #load csv file | |
data = json.load(inputFile) #load json content |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", | |
"browsersync": "browser-sync start --server --files 'src/*'", | |
"uglify:dist": "uglify src/js/**/*.js > dist/js/script.min.js", | |
"uglify": "npm run uglify:dist", | |
"test": "mocha", | |
"clean:dist": "rm -rf dist", |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as ec | |
from selenium.webdriver.common.by import By | |
from bs4 import BeautifulSoup | |
from urllib.request import urlretrieve | |
import os | |
import tkinter.filedialog as tkFileDialog | |
import tkinter as Tkinter | |
import tkinter.constants as Tkconstants |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as ec | |
from selenium.webdriver.common.by import By | |
from bs4 import BeautifulSoup | |
from urllib.request import urlretrieve | |
import os | |
import tkinter.filedialog as tkFileDialog | |
import tkinter as Tkinter | |
import tkinter.constants as Tkconstants |
import json | |
import csv | |
employee_parsed = json.loads(employee_data) | |
emp_data = employee_parsed['employee_details'] | |
# open a file for writing |
es = Elasticsearch( | |
['localhost'], | |
port=9200 | |
) | |
es = Elasticsearch(ES_CLUSTER) | |
with open("C:\ElasticSearch\shakespeare_6.0.json") as json_file: | |
json_docs = json.load(json_file) | |
es.bulk(ES_INDEX, ES_TYPE, json_docs) |