Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- Number of entries per bucket for the past 7 days | |
with dataset as ( | |
SELECT json_extract_scalar(api.request.data, '$.bucketName') as bucketName, * FROM amazon_security_lake_table_ap_southeast_1_s3_data_2_0 | |
WHERE accountid = '123459012' | |
) | |
SELECT bucketName, count(bucketName) as numberOfRecords FROM dataset | |
WHERE time_dt BETWEEN CURRENT_TIMESTAMP - INTERVAL '7' DAY AND CURRENT_TIMESTAMP | |
group by bucketName | |
ORDER BY numberOfRecords desc |
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 | |
set -euo pipefail | |
if [ -z ${TFC_AWS_APPLY_ROLE_ARN+x} ] && [ -z ${TFC_AWS_RUN_ROLE_ARN+x} ]; then | |
echo "Skipping this script because both env vars are missing and unset"; | |
else | |
set +u | |
ROLE_ARN="${TFC_AWS_APPLY_ROLE_ARN:-$TFC_AWS_RUN_ROLE_ARN}" | |
set -u | |
echo "Preparing AWS provider auth..." |
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 ruby | |
require 'json' | |
require 'date' | |
unless ENV['VAULT_ADDR'] | |
STDERR.puts "No VAULT_ADDR environment variable set. Set it and run me again!" | |
exit 100 | |
end |
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 | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
$ dig @8.8.8.8 reddit.com | |
; <<>> DiG 9.11.5-P1-1ubuntu2.5-Ubuntu <<>> @8.8.8.8 reddit.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25135 | |
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available |
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
spec: | |
template: | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/os | |
operator: In |
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
make testacc TESTARGS='-run=TestAccAWSCloudWatchDashboard_update' |
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
#![feature(prelude_import)] | |
#![no_std] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate std as std; | |
use serde::{Deserialize, Serialize}; | |
pub struct Test { | |
pub foo: String, | |
pub bar: bool, |
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
2019/01/18 15:24:07 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334 | |
2019/01/18 15:24:07 [INFO] Go runtime version: go1.11.1 | |
2019/01/18 15:24:07 [INFO] CLI args: []string{"/home/xxx/apps/terraform", "apply", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../common.tfvars", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../../organization.tfvars"} | |
2019/01/18 15:24:07 [DEBUG] Attempting to open CLI config file: /home/xxx/.terraformrc | |
2019/01/18 15:24:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/01/18 15:24:07 [INFO] CLI command args: []string{"apply", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../common.tfvars", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../../organization.tfvars"} | |
2019/01/18 15:24:07 [INFO] command: backend initialized: *gcs.Backend | |
2019/01/18 15:24:07 [DEBUG] checking for provider in "." | |
2019/01/18 15:24:07 [DEBUG] checking for provider in "/home/xxx/apps" | |
2019/01/1 |
NewerOlder