AWS EC2 accpet
- OpenSSH public key format (PEM)
- Base64 encoded DER format
- SSH public key file format, e.g.
~/.ssh/id_rsa.pub
ssh-keygen
#!/bin/bash | |
export AWS_PROFILE=<PROFILE_NAME> # defined in .aws/config, e.g. system-admin | |
aws sts get-caller-identity |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names | |
# *) local and remote tag names |
#!/bin/bash | |
CUSTOM_BASH_DIR=~/my_bash | |
function aws-encrypt() { | |
$CUSTOM_BASH_DIR/./aws-encrypt.sh "$@" | |
} | |
function aws-decrypt() { | |
$CUSTOM_BASH_DIR/./aws-decrypt.sh "$@" |
~/.gitconfig
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
Distribute S3 content through CloudFront
Parameters:
Assume role and pull/push image to ECR
export http_proxy=<PROXY>
export https_proxy=<PROXY>
export no_proxy=localhost,127.0.0.1
export AWS_DEFAULT_REGION=ap-southeast-2
$root/config
plugins {