System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
import React, { PropTypes, Component } from 'react' | |
class ContextExample extends Component { | |
static childContextTypes = { | |
config: PropTypes.object, | |
} | |
getChildContext() { |
#!/bin/bash | |
# download and install latest geckodriver for linux or mac. | |
# required for selenium to drive a firefox browser. | |
install_dir="/usr/local/bin" | |
json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) | |
if [[ $(uname) == "Darwin" ]]; then | |
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))') | |
elif [[ $(uname) == "Linux" ]]; then | |
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))') |
import boto3 | |
client = boto3.client( | |
'emr', | |
region_name='eu-west-1' | |
) | |
cmd = "hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount file:///etc/services /output" | |
emrcluster = client.run_job_flow( |
from __future__ import with_statement | |
from alembic import context | |
from sqlalchemy import engine_from_config, pool | |
from logging.config import fileConfig | |
from models import Base | |
config = context.config | |
fileConfig(config.config_file_name) |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
#@yasinkuyu 08/09/2017 | |
# install luminati (https://luminati.io) proxy manager & run | |
from selenium import webdriver | |
from selenium.webdriver.common.proxy import Proxy, ProxyType | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.proxy import * | |
PROXY = '127.0.0.1:24000' |
import React, {Component} from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import {EventEmitter} from 'events'; | |
import {Dispatcher} from 'flux'; | |
const AppDispatcher = new Dispatcher(); | |
const CHANGE_EVENT = 'CHANGE'; |
I had to install Java to get presto working
brew cask install java
From https://prestodb.io/docs/current/installation/cli.html I did:
wget https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.202/presto-cli-0.202-executable.jar
mv presto-cli-0.202-executable.jar presto
from selenium import webdriver | |
from selenium.webdriver.common.proxy import Proxy | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
from selenium.webdriver.chrome.options import Options | |
import zipfile,os | |
def proxy_chrome(PROXY_HOST,PROXY_PORT,PROXY_USER,PROXY_PASS): | |
manifest_json = """ | |
{ |