-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases.sh
More file actions
60 lines (49 loc) · 1.75 KB
/
Copy pathaliases.sh
File metadata and controls
60 lines (49 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
alias c=clear
alias wireshark=Wireshark
alias pdftk='docker run --rm --volume $(pwd):/work pdftk/pdftk:latest'
alias dive="docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock docker.io/wagoodman/dive"
alias b64="pbpaste | base64 | tee >(pbcopy)"
alias b64d="pbpaste | base64 -d | tee >(pbcopy)"
alias ascii="echo -e \$(pbpaste)"
alias msg="echo -e \$(pbpaste | jq .message)"
alias json="pbpaste | fx"
dir() {
mkdir -p $1
cd $1
}
# GH
alias git-up="git fetch --all -p; git fetch origin master:master"
alias pr_new="~/dev/scripts/create-branch-and-pull-request.sh"
alias pr="gh pr view -w"
alias prn="gh pr view --json number --jq '.number' | cat"
# env0
alias e0='cd ~/dev/env0'
alias ui="cd ~/dev/env0/frontend;pnpm start"
alias fe=ui
alias e2e="cd ~/dev/env0/e2e;pnpm open"
alias shag-in-pr="e0;./services/deployment-service/kubernetes/prepare-pr-env-for-k8s-agent.sh pr\$(prn)"
alias shag-in-pr-values="e0;./services/deployment-service/kubernetes/download-values-for-k8s-agent.sh pr\$(prn)"
alias pr_seed='open "https://console.seed.run/env0/Services/activity/stages/pr$(prn)"'
alias pr_e0='open "http://pr$(prn).dev.env0.com"'
alias sls-df="sls deploy --stage \"pr\$(prn)\" --function "
alias my-ip='curl ipv4.icanhazip.com'
alias dr="docker run -it --rm"
alias k=kubectl
k-exec() {
k exec -it $1 -- bash
}
# aws
alias a-id="aws sts get-caller-identity"
alias a="aws sso login --profile login"
alias a-reset="unset AWS_ACCESS_KEY_ID; unset AWS_SECRET_ACCESS_KEY; unset AWS_SESSION_TOKEN;"
alias a-profile="a-reset;asp"
a-cred() {
a-profile
eval $(aws configure export-credentials --profile $1 --format env)
}
# ### fabric
alias fabric="fabric-ai"
yt() {
local video_link="$1"
fabric -y "$video_link" --transcript-with-timestamps | youtube_summary
}