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
# awsweeper --dry-run awsweeper.yml | |
aws_alb_target_group: | |
aws_ami: | |
aws_api_gateway_api_key: | |
aws_api_gateway_client_certificate: | |
aws_api_gateway_domain_name: | |
aws_api_gateway_rest_api: | |
aws_api_gateway_usage_plan: | |
aws_api_gateway_vpc_link: | |
aws_apigatewayv2_api: |
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
-----BEGIN CERTIFICATE----- | |
MIIDhDCCAmygAwIBAgIQNu0nhr9HM4pbXdU27a2hFTANBgkqhkiG9w0BAQsFADBc | |
MQkwBwYDVQQGEwAxCTAHBgNVBAgTADEJMAcGA1UEBxMAMQkwBwYDVQQREwAxETAP | |
BgNVBAoTCGJvb3RrdWJlMQkwBwYDVQQLEwAxEDAOBgNVBAMTB2t1YmUtY2EwHhcN | |
MTcxMTA2MTUxMzAxWhcNMjAxMTA1MTUxMzAxWjBcMQkwBwYDVQQGEwAxCTAHBgNV | |
BAgTADEJMAcGA1UEBxMAMQkwBwYDVQQREwAxETAPBgNVBAoTCGJvb3RrdWJlMQkw | |
BwYDVQQLEwAxEDAOBgNVBAMTB2t1YmUtY2EwggEiMA0GCSqGSIb3DQEBAQUAA4IB | |
DwAwggEKAoIBAQCuZf9T+FHGHoQSWMtLeYfFworEKercP1iOK4jK+JB3Suehu+aE | |
7cwGkTWDJfyuIV4jQ0hbKMvbMtTnjnWLHp3+TcoPjaHT8jDD8xLLY/sEU5E30dzc | |
GhB6JZrp+8OsqifhtMwq/DBE6oGDNkNKsZCh6Fqws+NmWWeAF6lDHECH3qTFmvoC |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: app | |
data: | |
MYSQL_HOST: "db" | |
MYSQL_DATABASE: "auth" | |
MYSQL_USER: "app" | |
MYSQL_PASSWORD: "password" | |
MYSQL_ROOT_PASSWORD: "rootpassword" |
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
* | |
!.gitignore | |
!README.md | |
!template.sh |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: ghost | |
labels: | |
role: blog | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
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
# https://github.com/Microsoft/azure-docs/blob/master/articles/container-service/container-service-kubernetes-walkthrough.md | |
alias az="docker run --rm --volume ${HOME}:/root azuresdk/azure-cli-python az" | |
az login | |
RESOURCE_GROUP=kubernetes | |
LOCATION=southcentralus | |
DNS_PREFIX=phymata | |
CLUSTER_NAME=kubernetes |
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 alpine:3.5 | |
COPY cat-etc-hosts.sh . | |
RUN chmod u+x cat-etc-hosts.sh | |
CMD ["./cat-etc-hosts.sh"] |
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
# Usage: remote-diff foo.yaml https://raw.githubusercontent.com/some-org/some-repo/master/foo.yaml | |
# Note: It ignores lines that begin with a '#' (comments) | |
function remote-diff() | |
{ | |
FILE=${1} | |
FILENAME=$(basename ${FILE}) | |
TMP_FILE="/tmp/${FILENAME}" | |
REMOTE_FILE=${2} |
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
# Usage: prat my-feature-branch "My commit (and pull request message)" | |
# Requirements: https://hub.github.com/ | |
function prat() | |
{ | |
BRANCH=${1:-} | |
MESSAGE=${2:-} | |
git diff |
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
PS1='(k:$(kubernetes-context) | d:$(docker-context "%s") | g:$(__git_ps1 "%s"))\n\W $ ' | |
function docker-context() | |
{ | |
if [ -z "$DOCKER_HOST" ]; then | |
printf "localhost" | |
else | |
local HOSTNAME_REGEX=".*//(.*):.*" | |
[[ $DOCKER_HOST =~ $HOSTNAME_REGEX ]] | |
printf ${BASH_REMATCH[1]} |
NewerOlder