MIT
Install flask and requests to run this example.
| import tweepy #https://github.com/tweepy/tweepy | |
| import csv | |
| #Twitter API credentials | |
| consumer_key = "" | |
| consumer_secret = "" | |
| access_key = "" | |
| access_secret = "" |
| #!/usr/bin/env bash | |
| # This script is meant to build and compile every protocolbuffer for each | |
| # service declared in this repository (as defined by sub-directories). | |
| # It compiles using docker containers based on Namely's protoc image | |
| # seen here: https://github.com/namely/docker-protoc | |
| set -e | |
| REPOPATH=${REPOPATH-/opt/protolangs} | |
| CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} |
| # Go parameters | |
| GOCMD=go | |
| GOBUILD=$(GOCMD) build | |
| GOCLEAN=$(GOCMD) clean | |
| GOTEST=$(GOCMD) test | |
| GOGET=$(GOCMD) get | |
| BINARY_NAME=mybinary | |
| BINARY_UNIX=$(BINARY_NAME)_unix |
Unfortunately as of writing this (Oct 18, 2017) there is no built in integration for multiple target groups per AWS ECS service. Here are a few things you can try:
| """ | |
| AWS ECS django settings | |
| """ | |
| import requests | |
| from .settings import * # may look different for your project | |
| def get_ecs_task_ips(): | |
| """ |
| --- | |
| apiVersion: v1 | |
| data: | |
| elasticsearch.yml: |- | |
| cluster.name: elasticsearch | |
| node.data: ${NODE_DATA:true} | |
| node.master: ${NODE_MASTER:true} | |
| node.ingest: ${NODE_INGEST:true} | |
| node.name: ${HOSTNAME} |
| all-pods() { | |
| FZF_DEFAULT_COMMAND=' | |
| (echo CONTEXT NAMESPACE NAME READY STATUS RESTARTS AGE | |
| for context in $(kubectl config get-contexts --no-headers -o name | sort); do | |
| kubectl get pods --all-namespaces --no-headers --context "$context" | sed "s/^/${context%-context} /" | |
| done) 2> /dev/null | column -t | |
| ' fzf --info=inline --layout=reverse --header-lines=1 --border \ | |
| --prompt 'all-pods> ' \ | |
| --header $'╱ Enter (kubectl exec) ╱ CTRL-O (open log in editor) ╱ CTRL-R (reload) ╱\n\n' \ | |
| --bind ctrl-/:toggle-preview \ |