$ runc --version
runc version 1.0.0-rc4+dev
commit: f53ad9cec928821a25c2a74eb8bd95558f8cf152-dirty
spec: 1.0.0
$ containerd --version
containerd github.com/containerd/containerd v1.0.0-beta.3-86-g9649a42 9649a428e8c470cddc0d5a3c394f36111f940adc
This file contains hidden or 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
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
This file contains hidden or 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
| yum install -y epel-release | |
| yum install -y python-pip | |
| cd /usr/bin | |
| pip install pystache | |
| pip install argparse | |
| pip install python-daemon | |
| pip install requests | |
| cd /opt |
This file contains hidden or 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
| # Count total EBS based storage in AWS | |
| aws ec2 describe-volumes | jq "[.Volumes[].Size] | add" | |
| # Count total EBS storage with a tag filter | |
| aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add" | |
| # Describe instances concisely | |
| aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]' | |
| # Wait until $instance_id is running and then immediately stop it again | |
| aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id | |
| # Get 10th instance in the account |
This file contains hidden or 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
| { | |
| "AWSAccountActivityAccess": { | |
| "Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess", | |
| "AttachmentCount": 0, | |
| "CreateDate": "2015-02-06T18:41:18+00:00", | |
| "DefaultVersionId": "v1", | |
| "Document": { | |
| "Statement": [ | |
| { | |
| "Action": [ |
This file contains hidden or 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
| package testjava; | |
| import java.util.HashMap; | |
| import java.util.Random; | |
| /* | |
| * URL Shortener | |
| */ | |
| public class URLShortener { | |
| // storage for generated keys |
This file contains hidden or 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
| <!doctype html> | |
| <html ng-app="Demo"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Simulating Network Latency In AngularJS With HTTP Interceptors | |
| </title> | |
| <link rel="stylesheet" type="text/css" href="./demo.css"></link> |
This file contains hidden or 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 | |
| # Run this script with: | |
| # bash <(curl -s https://gist.github.com/garlandkr/e80674b49270b0199fa6/raw/ami-clean.sh | |
| function print_green { | |
| echo -e "\e[32m${1}\e[0m" | |
| } | |
| print_green 'Clean Yum' |
This file contains hidden or 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
| // performance.js | |
| // https://github.com/bgrins/devtools-snippets | |
| // Print out window.performance information. | |
| // https://developer.mozilla.org/en-US/docs/Navigation_timing | |
| (function () { | |
| var t = window.performance.timing; | |
| var timings = []; |
NewerOlder