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": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:DeleteSubnet", | |
"ec2:CreateVpc", | |
"ec2:AttachInternetGateway", |
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": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetLifecycleConfiguration", | |
"s3:GetBucketTagging", | |
"s3:GetBucketWebsite", |
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 | |
SIZE=$(stat --printf="%s" $1) | |
START=$(date +%s) | |
cp $1 $2 | |
END=$(date +%s) | |
DIFF=$(( $END - $START )) | |
TRANSFER=`echo "scale=0;$SIZE / $DIFF * 8 " | bc` | |
echo "Size: $SIZE" |
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": [ | |
{ | |
"Action": [ | |
"ecr:GetAuthorizationToken" | |
], | |
"Resource": "*", | |
"Effect": "Allow" | |
}, |
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 | |
CONCURRENCY=1 | |
REQUESTS=10 | |
ADDRESS="http://localhos:8080" | |
TIMEOUT=2 | |
show_help() { | |
cat << EOF | |
Naive Stress Test with cURL. |
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
from datetime import date, timedelta | |
import smtplib | |
import os | |
SENDER = os.environ['PATH_SENDER'] | |
PASS = os.environ['PATH_PASS'] | |
RECIPIENT = os.environ['PATH_RECIPENT'] | |
SUBJECT = 'Message' | |
TEXT = 'Hello World!!' |
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
/* exported Script */ | |
String.prototype.capitalizeFirstLetter = function() { | |
return this.charAt(0).toUpperCase() + this.slice(1); | |
} | |
const getLabelsField = (labels) => { | |
let labelsArray = []; | |
labels.forEach(function(label) { | |
labelsArray.push(label.name); |