most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| aws s3 sync s3://oldbucket s3://newbucket --source-region us-west-1 --region us-west-2 |
| aws s3api list-objects --bucket BUCKETNAME --output json --query "[sum(Contents[].Size), length(Contents[])]" |
| #!/usr/bin/env ruby | |
| require 'aws-sdk' | |
| if ARGV.length < 5 | |
| print <<-EOF | |
| Usage: mfa-delete.rb <bucket_name> <aws_id> <aws_secret> <mfa_serial> <mfa_token> <s3_endpoint> | |
| <s3_endpoint> is optional | |
| EOF | |
| exit | |
| end |
| #!/bin/bash | |
| # Configure the instance to run as a Port Address Translator (PAT) to provide | |
| # Internet connectivity to private instances. | |
| function log { logger -t "vpc" -- $1; } | |
| function die { | |
| [ -n "$1" ] && log "$1" | |
| log "Configuration of PAT failed!" | |
| exit 1 |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AWSCloudTrailAclCheck20131101", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": [ | |
| "arn:aws:iam::903692715234:root", | |
| "arn:aws:iam::859597730677:root", |
| { | |
| "Version": "2008-10-17", | |
| "Id": "arn:aws:sqs:us-east-1:<core-account-number>:cloudtrail-notifications/SQSDefaultPolicy", | |
| "Statement": [ | |
| { | |
| "Sid": "Sid1385789515788", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, |
| { | |
| "Version": "2012-10-17", | |
| "Id": "S3PolicyId1", | |
| "Statement": [ | |
| { | |
| "Sid": "IPAllow", | |
| "Effect": "Allow", | |
| "Principal": "*", | |
| "Action": "s3:*", | |
| "Resource": "arn:aws:s3:::<S3-bucket-name>/*", |
| { | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "aws-portal:ViewBilling", | |
| "ec2:DescribeInstances", | |
| "ec2:DescribeReservedInstances", | |
| "cloudwatch:GetMetricStatistics" | |
| ], |