Build once, configure once and run any where
docker info
docker search string
Learn at this tutorial http://www.shellscript.sh/
#!/bin/sh
echo 'hello world'
what is #!/bin/sh means?
#Basic set up
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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 |
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" {}
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 |
# 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
Install ADB in windows and WLS Use OpenJDK 8
on windows:adb tcpip 5555
on wsl2: adb connect [ip device]:5555