Skip to content

Instantly share code, notes, and snippets.

View talhasch's full-sized avatar

Talha talhasch

View GitHub Profile
@ruanbekker
ruanbekker / elasticsearch-bootstrap-master-node.sh
Created August 11, 2017 13:55
Bootstrap Elasticsearch Master Node on Ubuntu 16.04
#!/bin/bash
apt update && apt upgrade -y
apt install software-properties-common python-software-properties apt-transport-https -y
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
add-apt-repository ppa:webupd8team/java -y
apt update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
apt install oracle-java8-installer -y
apt install nginx apache2-utils elasticsearch -y
@sagiavinash
sagiavinash / ReactRouterV4FlowTypes.js
Created September 10, 2018 12:52
Flow Types for React Router V4
/*
* Types for React Router V4
* Example Usage:
* type PropsT = {
* myProp: string,
* } & ContextRouterT<{
* routeParam: string,
* anotherRouteParam: ?string,
* }>
*/