This file contains hidden or 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 * as AWS from "aws-sdk"; | |
// Athena Helper | |
export async function executeAthenaQuery(query: string | string[], outputLocation: string) { | |
const athena = new AWS.Athena(); | |
let queryString: string; | |
if (typeof query === "string") { | |
queryString = query; | |
} else { |
This file contains hidden or 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 cloudfront_logs ( | |
date date COMMENT '', | |
time string COMMENT '', | |
location string COMMENT '', | |
bytes bigint COMMENT '', | |
requestip string COMMENT '', | |
method string COMMENT '', | |
host string COMMENT '', | |
uri string COMMENT '', | |
status int COMMENT '', |
This file contains hidden or 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
// Custom made dynamoose declaration file. | |
declare module "dynamoose" { | |
export function local(url: string): void; | |
export function model<DataSchema, KeySchema, ModelSchema extends Model<DataSchema>>( | |
modelName: string, | |
schema: Schema, | |
options?: ModelOption | |
): ModelConstructor<DataSchema, KeySchema, ModelSchema>; | |
export function setDefaults(options: ModelOption): void; |
This file contains hidden or 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
p: | |
Error: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file` or `Excon.defaults[:ssl_verify_peer] = false` (less secure). (Excon::Errors::SocketError) | |
s: | |
export SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem |
This file contains hidden or 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
CC=/usr/local/bin/gcc-4.2 rvm install 2.0.0 --enable-shared --enable-dtrace=false |