This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| #!/bin/bash | |
| FILES=$(ls *.shp | sed 's/\..\{3\}$//'); | |
| for FILE in $FILES | |
| do | |
| shp2pgsql -s 4326 -I -k ${FILE} gis.${FILE} | psql -d HSIP | |
| done |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
Salt is a great tool for remote execution and configuration management, however you will still need to bootstrap the daemon when spinning up a new node. One option is to create and save a custom AMI, but this creates another resource to maintain and document.
A better method for Linux machines uses Canonical's CloudInit to run a bootstrap script during an EC2 Instance initialization. Cloud-init takes the user_data string passed into a new AWS instance and runs it in a manner similar to rc.local. The bootstrap script needs to:
| -- PostgreSQL 9.2 beta (for the new JSON datatype) | |
| -- You can actually use an earlier version and a TEXT type too | |
| -- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8 | |
| -- Inspired by | |
| -- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html | |
| -- http://ssql-pgaustin.herokuapp.com/#1 | |
| -- JSON Types need to be mapped into corresponding PG types | |
| -- |
| ## Install necessary packages | |
| $ sudo apt-get install virtualbox-ose qemu-utils genisoimage cloud-utils | |
| ## get kvm unloaded so virtualbox can load | |
| $ sudo modprobe -r kvm_amd kvm_intel | |
| $ sudo service virtualbox stop | |
| $ sudo service virtualbox start | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" |
| #!/bin/bash | |
| VERBOSITY=0 | |
| TEMP_D="" | |
| DEF_DISK_FORMAT="raw" | |
| DEF_FILESYSTEM="iso9660" | |
| error() { echo "$@" 1>&2; } | |
| errorp() { printf "$@" 1>&2; } | |
| fail() { [ $# -eq 0 ] || error "$@"; exit 1; } |
| { | |
| "builders": [{ | |
| "type": "virtualbox-iso", | |
| "guest_os_type": "RedHat_64", | |
| "iso_url": "[YOUR ISO PATH HERE]", | |
| "iso_checksum": "[YOUR ISO CHECKSUM HERE]", | |
| "iso_checksum_type": "sha256", | |
| "ssh_username": "vagrant", | |
| "ssh_password": "vagrant", | |
| "ssh_wait_timeout": "1500s", |
| { | |
| "variables": [], | |
| "info": { | |
| "name": "TAXII-1.1 (0.1)", | |
| "_postman_id": "f355c2a2-5d3e-6f5b-f957-afe4d5646d7a", | |
| "description": "Simple collection of TAXII 1.1 requests.\nYou need an environment with the following keys to run this:\n- hostname: hostname of the TAXII server\n- collection: name of the collection to poll (needed only for Poll Request)\n\nDiscovery request points to {{hostname}}/taxii-discovery-service\n\nCollection Information Request points to {{hostname}}/taxii-collection-management-service\n\nPoll Request to {{hostname}}/taxii-poll-service", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
| }, | |
| "item": [ | |
| { |