-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
36 lines (28 loc) · 832 Bytes
/
.aliases
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
# JIRA TICKETING
if grep -q WSL /proc/version; then
# If we're running WSL.
alias jira="cat ~/.jiratemplate | clip.exe"
alias pr="cat ~/.prtemplate | clip.exe"
alias blog="cat ~/.blogtemplate | clip.exe"
fi
# KUBERNETES
alias k="kubectl"
# DOCKER + KUBERNETES
nuke_k8s() {
k3d cluster delete --all
}
nuke_docker() {
docker rm -f -v $(docker ps -aq)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls -q)
}
alias nuke="nuke_docker;nuke_k8s;"
# PYTHON
alias venv="source .venv/bin/activate"
# MISC
alias bat='upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"'
# Use codegen in dbt.
gen_yaml () {
dbt run-operation generate_model_yaml --args "{'model_names': ['$1'], 'upstream_descriptions': True}"
}