du -Sh | sort -rh | head -5
for i in $(seq 1 $END); do echo $i; done
#!/usr/bin/env python3.7 | |
import os | |
import json | |
import logging | |
from botocore.vendored import requests | |
import ec2 | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) |
#!/usr/bin/expect | |
set username "mstiborsky\r" | |
set config "/etc/openvpn/client/zonky.conf" | |
set vpn_oauth_token [exec ykman oath code -s vpn] | |
spawn openvpn --config $config --auth-user-pass | |
expect "Enter Auth Username:" | |
send $username | |
expect "Enter Auth Password:" |
module "test-sg" { | |
source = "../../modules/terraform-aws-security-group" | |
name = "${var.name}-test" | |
vpc_id = "${module.vpc.vpc_id}" | |
ingress_with_cidr_blocks = [ | |
{ | |
rule = "ssh-tcp" | |
description = "test01" |
#/bin/bash | |
set -euo pipefail | |
instance_profile=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/) | |
aws_access_key_id=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g') | |
aws_secret_access_key=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g') | |
token=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | sed -n '/Token/{p;}' | cut -f4 -d'"') | |
export AWS_ACCESS_KEY_ID=${aws_access_key_id} |
spec: | |
template: | |
spec: | |
containers: | |
volumeMounts: | |
- mountPath: /var/www/html | |
name: www | |
spec: | |
template: |
kubectl get pod -o jsonpath='{.items[?(@.status.phase!="Running")].metadata.name}' |
Archive: staging-deploy-lambda-0c0442e9.zip | |
Length Date Time Name | |
--------- ---------- ----- ---- | |
112 2017-08-03 18:07 Makefile | |
0 2017-08-03 18:07 requests/ | |
453 2017-08-03 18:07 requests/certs.py | |
18208 2017-08-03 18:07 requests/cookies.py | |
542 2017-08-03 18:07 requests/packages.py | |
3323 2017-08-03 18:07 requests/status_codes.py | |
20836 2017-08-03 18:07 requests/adapters.py |