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
{ | |
"Mappings": { | |
"RegionMap": { | |
"ap-northeast-1": { | |
"CentOS7x8664EBSHVM": "ami-eec1c380" | |
}, | |
"ap-northeast-2": { | |
"CentOS7x8664EBSHVM": "ami-c74789a9" | |
}, | |
"ap-south-1": { |
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 | |
# this script should be used in a dir with both the old | |
# private key and the new public key | |
oldpem=$1 | |
user=$2 | |
newpub=$3 | |
newpem=$4 |
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
// Mostly copied from http://bost.ocks.org/mike/nations/ | |
// Various accessors that specify the four dimensions of data to visualize. | |
function x(d) { return d.x; } | |
function y(d) { return d.y; } | |
function radius(d) { return d.radius; } | |
function color(d) { return d.color; } | |
function key(d) { return d.name; } | |
// Chart dimensions. |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var mandelbrotCanvas = document.getElementById('mandelbrotCanvas'); | |
var context = mandelbrotCanvas.getContext('2d'); | |
var width = mandelbrotCanvas.width; | |
var height = mandelbrotCanvas.height; |