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 -x | |
# User script to bootstrap any instance. | |
# This will set up, array, and format every instance storage | |
# drive present in the instance (if any) | |
# | |
# The disk format/layout is read from an EC2 tag "DiskLayout" | |
# (defined in the cloudformation templates) and it defaults to | |
# "raid0". Possible values are: | |
# * raidN: grabs all available instance storage drives, creates a |
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/python | |
# this script iterates over input from standard in (ideally properly formatted PlPgSQL) | |
# and POSTs it to CartoDB using credentials in credentials.ini | |
import requests | |
import fileinput | |
from itertools import islice | |
import json | |
import re |