I hereby claim:
- I am stumpr on github.
- I am rstump (https://keybase.io/rstump) on keybase.
- I have a public key ASCiNmhMHXwRBxXLmd2xlg5YlXNx6WqqlSjfUkt_Zm-Uego
To claim this, I am signing this object:
/* function : ISODateTimeToGlideDateTime() | |
Convert ISO8601 DateTime string to GlideDateTime object | |
*/ | |
function ISODateTimeToGlideDateTime(s) { | |
if ( (s == '') || (s == null) ) { | |
return null; | |
} | |
// GlideDateTime constructor expects date format: 'YY-MM-DD HH::MM::SS' | |
parts = s.split(/[-TZ:+]/g); |
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- uri: | |
url: https://rstumph2.service-now.com/stats.do | |
return_content: yes | |
register: response |
makeAssignments(reqItem, assignments, rule_variables, loggers); | |
/** Context contains | |
* reqItem - request item (sc_req_item) that the rule is running against | |
* assignments - name/value pairs set by previous rule assignments - assigning values to variables of the request item | |
* rule_variables - name/value pairs set by previous rule assignments with temporary values that do not persist after the rule finishes making assignments | |
* loggers - collection of logging functions, to use: | |
* loggers.log(msg, loggers.executor); | |
* loggers.logError(msg, loggers.executor); | |
* loggers.logWarning(msg, loggers.executor); |
IFS=$'\n' read -rd '' -a array <<< "$(aws ec2 describe-instances | jq -c .Reservations[])" | |
n=0; for i in "${array[@]}"; do n=$((n+1)); cbc create $n -V "${i}"; done |
I hereby claim:
To claim this, I am signing this object:
provider "aws" { | |
profile = "${var.profile}" | |
region = "${var.region}" | |
assume_role { | |
role_arn = "arn:aws:iam::${var.account_id}:role/${var.assume_role}" | |
} | |
} | |
resource "aws_s3_bucket" "tf_state_storage" { |
aws ec2 register-image --ena-support --sriov-net-support simple --virtualization-type hvm --name ami-base-centos --block-device-mappings '[{"DeviceName":"/dev/sda1","Ebs":{"SnapshotId":"snap-05168016823a3fc9f"}}]' --root-device-name /dev/sda1 --architecture x86_64 --profile rdc-com-production | |
aws ec2 create-tags --tags Key=OS,Value=CentOS Key=Application,Value=base --resources ami-423a593d --profile rdc-com-production |
-- Default VPCs | |
SELECT * | |
FROM "stormreports"."ec2_vpcs" | |
WHERE isDefault = true | |
AND date = date_format(current_date, '%Y-%m-%d') | |
-- VPCs with no ENIs attached (possibly unused) | |
WITH e AS | |
(SELECT vpcid, |
#!/usr/bin/env python | |
import boto3, argparse, sys, time | |
parser = argparse.ArgumentParser(description="Remove default VPC in specified account and region") | |
parser.add_argument('--account', | |
type=str ) | |
parser.add_argument('--region', | |
type=str ) | |
parser.add_argument('--role', |