Build once, configure once and run any where
docker info
docker search string
#Basic set up
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Learn at this tutorial http://www.shellscript.sh/
#!/bin/sh
echo 'hello world'
what is #!/bin/sh means?
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
" COLORS | |
Plugin 'arcticicestudio/nord-vim' | |
" json formater | |
Plugin 'elzr/vim-json' | |
" status bar |
FROM golang:buster as build | |
WORKDIR /app | |
COPY . . | |
RUN CGO_ENABLED=0 GOOS=linux go build \ | |
-mod=vendor -ldflags "-s -w" -a -installsuffix cgo -o bin . | |
## Install shush |
https://blog.golang.org/go1.13-errors
Anti-patterns: 🚫
// shadowing the error with some meaningless message
if err != nil {
https://www.terraform.io/docs/language/syntax/style.html
Variables Names and Resource Identifiers Use snake case. e.g.
variable "this_is_a_variable_name" {}
resource "aws_lambda_function" "replication_function" {}
# with_role bc-videocloud-prod arn:aws:iam::749779118921:role/dev-admin
function with_role() {
>&2 echo "Generating Temporary Session Creds..."
CREDS=$(aws sts assume-role \
--profile $1 \
--role-arn $2 \
--role-session-name "${USER}-session" \
--query Credentials \
ionic build
npx cap add android
ionic capacitor run android