source 'https://rubygems.org'
gem "kitchen-docker", github: "jeffreycoe/kitchen-docker", branch: "windows-support"
gem 'test-kitchen'
gem 'kitchen-inspec'
gem 'inspec'
git log --all --decorate --oneline --graph
- Access https://keyserver.ubuntu.com
- Search for a specific name (i.e
mongodb
) - Search for a specific version.
...
pub 4096R/A15703C6 2016-01-11
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
ssh-keygen -b 1024 -t rsa -f id_rsa -P "" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjMwNTg4MjM1MjkgMC4zMDU4ODIzNTI5IDAuMzA1ODgyMzUyOQAQAoAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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
#based on https://aws.amazon.com/blogs/security/how-to-implement-federated-api-and-cli-access-using-saml-2-0-and-ad-fs/ | |
import sys | |
import boto.sts | |
import boto.s3 | |
import requests | |
import ConfigParser | |
import base64 | |
import logging | |
import os |
openssl pkcs8 -in -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
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
BUCKET='<my_bucket>' | |
import boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket(BUCKET) | |
bucket.object_versions.delete() | |
bucket.delete() |
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
aws ec2 describe-images --owners amazon --filters 'Name=name,Values=Windows_Server-2016-English-Full-Base-????.??.??' 'Name=state,Values=available' | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId ' | |
aws ec2 describe-images --owners amazon --filters 'Name=name,Values=Windows_Server-2012-R2_RTM-English-P3-????.??.??' 'Name=state,Values=available' | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId ' | |
aws ec2 describe-images --owners amazon --filters 'Name=name,Values=Windows_Server-2016-English-Core-Base-????.??.??' 'Name=state,Values=available' | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId ' | |
aws ec2 describe-images --owners amazon --filters 'Name=name,Values=Windows_Server-2019-English-Core-Base-????.??.??' 'Name=state,Values=available' | jq -r '.Images | sort_by(.CreationDate) | last(.[]).ImageId ' | |
aws ec2 describe-images --owners amazon --filters 'Name=name,Values=Windows_Server-2019-English-Full-Base-????.??.??' 'Name=state,Values=available' | jq -r '.Images | sort |