This file contains 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 python3 | |
import json | |
import os | |
import subprocess | |
import urllib.request | |
from pathlib import Path | |
from subprocess import CompletedProcess | |
from typing import Any, Dict, Mapping | |
from urllib.request import Request | |
import sys |
This file contains 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
// Load the AWS SDK, fs and path modules for Node.js | |
var AWS = require("aws-sdk"); | |
var fs = require("fs"); | |
// Set the region | |
AWS.config.update({region: "us-west-1"}) | |
// Create S3 service object | |
const s3 = new AWS.S3({apiVersion: "2006-03-01"}); |
This file contains 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
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" vim-plug | |
call plug#begin('~/.vim/plugged') | |
" Plugins | |
Plug 'chriskempson/base16-vim' | |
Plug 'jmcantrell/vim-virtualenv' |
This file contains 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
{ "aaData": | |
[ | |
["ap-northeast-1","karmic","9.10 EOL","amd64","instance-store","20100826","<a href=\"https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchAmi=ami-2a0fa42b\">ami-2a0fa42b</a>","aki-260fa427"], | |
["ap-northeast-1","karmic","9.10 EOL","i386","instance-store","20100826","<a href=\"https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchAmi=ami-240fa425\">ami-240fa425</a>","aki-0a0fa40b"], | |
["ap-southeast-1","karmic","9.10 EOL","amd64","instance-store","20100826","<a href=\"https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchAmi=ami-90344ac2\">ami-90344ac2</a>","aki-ec344abe"], | |
["ap-southeast-1","karmic","9.10 EOL","i386","instance-store","20100826","<a href=\"https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchAmi=ami-e6344ab4\">ami-e6344ab4</a>","aki-e2344ab0"], | |
["eu-west-1","karmic","9.10 EOL","amd64","instance-store","20100826","<a href=\"https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchAmi=ami-28b9935c\">ami-28b9935c</a>","aki |
This file contains 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
require 'formula' | |
class CBTerraform < Formula | |
desc "Chartboost monkey-patched Terraform with the aws_route resource" | |
homepage "https://terraform.io" | |
url "https://s3.amazonaws.com/chartboost/ops/tools/terraform_0.6.1-dev_dawrin_amd64.tar.gz" | |
sha256 "eead54352cd136c90e1780d496e3a0dfbd89ab5f9283f4d4e8c2808a39aad836" | |
head "https://github.com/gkze/terraform.git", :branch => "master" | |
end |
This file contains 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
2015/07/07 17:56:59 [INFO] Terraform version: 0.6.0 dev e19304a783bda4babd381a8459ecc5de06476e22+CHANGES | |
2015/07/07 17:56:59 Detected home directory from env var: /home/vagrant | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: atlas = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-atlas | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: aws = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-aws | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: azure = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-azure | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: cloudflare = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-cloudflare | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: cloudstack = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-cloudstack | |
2015/07/07 17:56:59 [DEBUG] Discovered plugin: consul = /opt/gopath/src/github.com/hashicorp/terraform/bin/terraform-provider-consul | |
2015/07/07 17:56:59 [DEBUG] Discovered plug |
This file contains 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
import json | |
import re | |
import subprocess | |
def get_data(): | |
patt = re.compile("[^\s]+") | |
p = subprocess.Popen(['consul', 'members', '-detailed'], shell=False, stdout=subprocess.PIPE) | |
d, _ = p.communicate() |
This file contains 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
variable "aws_access_key" {} | |
variable "aws_secret_key" {} | |
provider "aws" { | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
region = "us-east-1" | |
} | |
resource "aws_vpc" "terraform-testing" { |
This file contains 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
#!/bin/bash | |
# Exit on error | |
set -e | |
# Logging utility | |
log() { | |
# Escape codes for colored output | |
C_GREEN="\033[32m" | |
C_NORMAL="\033[0m" | |
C_RED="\033[31m" |
This file contains 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
#!/bin/bash | |
echo "Install the necessary tools" | |
sudo apt-get -y install make flex bison libtool libevent-dev automake pkg-config libssl-dev libboost-all-dev libbz2-dev build-essential g++ python-dev git | |
echo "git cloning Thrift" | |
git clone https://github.com/apache/thrift.git | |
pushd thrift |
NewerOlder