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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1483564261000", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:GetRole", | |
"iam:CreateRole", | |
"iam:DeleteRole", |
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
let AWS = require('aws-sdk'); | |
let configservice = new AWS.ConfigService({region: process.argv[2]}); | |
const describeParams = {}; | |
configservice.describeConfigRules(describeParams, function(err, data) { | |
if (err) console.log(err, err.stack); // an error occurred | |
else { | |
for (let ruleIndex in data.ConfigRules) { | |
let params = { |
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
SELECT * from osm.planet | |
WHERE type = 'node' | |
AND tags['man_made'] IN ('water_tap') | |
AND lon BETWEEN -15.0863 AND -7.3651 | |
AND lat BETWEEN 4.3531 AND 12.6762; |
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
CREATE EXTERNAL TABLE planet ( | |
id BIGINT, | |
type STRING, | |
tags MAP<STRING,STRING>, | |
lat DECIMAL(9,7), | |
lon DECIMAL(10,7), | |
nds ARRAY<STRUCT<ref: BIGINT>>, | |
members ARRAY<STRUCT<type: STRING, ref: BIGINT, role: STRING>>, | |
changeset BIGINT, | |
timestamp TIMESTAMP, |
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
[Unit] | |
Description=greengrass daemon | |
After=network.target | |
[Service] | |
ExecStart=/greengrass/ggc/core/greengrassd start | |
Type=simple | |
RestartSec=2 | |
Restart=always | |
User=root |
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
audioread==2.1.5 | |
cryptography==1.7.1 | |
decorator==4.0.11 | |
idna==2.2 | |
joblib==0.11 | |
keyring==10.1 | |
keyrings.alt==1.3 | |
librosa==0.5.1 | |
llvmlite==0.15.0 | |
numba==0.30.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
exports.handler = (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
headers['cache-control'] = [ | |
{key: 'Cache-Control', | |
value: 'max-age=3600' | |
}]; | |
callback(null, response); |
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 bash | |
brew upgrade | |
brew cleanup | |
brew install zsh git | |
cd ~ | |
git clone https://github.com/matthewberryman/oh-my-zsh .oh-my-zsh && ln -s .oh-my-zsh/templates/zshrc.mac . | |
git clone https://github.com/creationix/nvm .nvm | |
echo "/usr/local/bin/zsh" | sudo tee -a /etc/shells > /dev/null | |
sudo chsh -s /usr/local/bin/zsh $USER | |
# Then close terminal and re-open and run |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> |