I hereby claim:
- I am kepstein on github.
- I am kepstein (https://keybase.io/kepstein) on keybase.
- I have a public key ASDPq_5BgOosJn48jsaPNZGRVM9Y1C7dj1sMgBIgWywTEgo
To claim this, I am signing this object:
#!/bin/bash | |
# bamboo | |
mkdir /opt/atlassian | |
wget -O /opt/atlassian/bamboo.tar.gz http://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.1.1.tar.gz | |
cd /opt/atlassian | |
tar xzf bamboo.tar.gz | |
mv atlassian* bamboo | |
mkdir /home/bamboo |
I hereby claim:
To claim this, I am signing this object:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Deny", | |
"Action": "*", | |
"Resource": "*", | |
"Condition": { | |
"ForAllValues:StringEquals": { | |
"aws:RequestedRegion": [ |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2016/02/29 17:26 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
Random recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
\+?1?\s?\-?\(?\d{3}\)?\s?\-?\d{3}\s?\-?\d{4} |
# https://www.radishlogic.com/aws/lambda/how-to-get-the-aws-account-id-in-lambda-python/ | |
def lambda_handler(event, context): | |
aws_account_id = context.invoked_function_arn.split(":")[4] | |
print(aws_account_id) |
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Creates a CodeBuild project to audit an AWS account with Prowler and stores the html report in a S3 bucket. This will run onece at the beginning and on a schedule afterwards. Partial contribution from https://github.com/stevecjones | |
Parameters: | |
ServiceName: | |
Description: 'Specifies the service name used within component naming' | |
Type: String | |
Default: 'prowler' | |
LogsRetentionInDays: |
#Function Create-RandomFiles{ | |
<# | |
.SYNOPSIS | |
Generates a number of dumb files for a specific size. | |
.DESCRIPTION | |
Generates a defined number of files until reaching a maximum size. | |
.PARAMETER TotalSize | |
Specify the total size you would all the files combined should use on the harddrive. |
#! /bin/bash | |
region='us-east-1' | |
# Find all gp2 volumes within the given region | |
volume_ids=$(/usr/bin/aws ec2 describe-volumes --region "${region}" --filters Name=volume-type,Values=gp2 | jq -r '.Volumes[].VolumeId') | |
# Iterate all gp2 volumes and change its type to gp3 | |
for volume_id in ${volume_ids};do | |
result=$(/usr/bin/aws ec2 modify-volume --region "${region}" --volume-type=gp3 --volume-id "${volume_id}" | jq '.VolumeModification.ModificationState' | sed 's/"//g') |