-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
52 lines (46 loc) · 1.81 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# docker
alias dc='docker-compose';
alias dclean='docker-compose stop && docker-compose rm -af';
alias dcu='dc up -d';
alias dcl='dc logs -f';
alias dl='docker logs -f';
alias dockerList='docker ps -a'
alias dockerRemove='docker ps -a -q | xargs docker rm -f'
alias dockerRemoveDanglingVolumes='docker volume rm `docker volume ls -q -f dangling=true`'
alias dockerReset='docker system prune -a'
# eleventy
alias e11yMarkdown='npx @11ty/eleventy --formats=md'
# gradle
alias gradleCleanBuild='gradle clean build'
alias gradleUpdateCheck='./gradlew dependencyUpdates -Drevision=release -DoutputFormatter=json,xml'
alias gradleWrapperUpdate='gradle wrapper --gradle-version 7.2.0 --distribution-type all'
# kubernetes
alias k='kubectl'
alias kn='kubectl ns'
alias kx='kubectl ctx'
# maven
alias mavenCleanInstall='mvn clean install'
alias mavenCleanPackage='mvn clean package'
alias mavenCleanVerify='mvn clean verify'
alias mavenSpringBootRun='mvn spring-boot:run'
alias mavenUpdates='mvn versions:display-dependency-updates'
# misc
alias brewUpgrade='brew update && brew upgrade && brew upgrade --cask && brew cleanup'
alias browserslist='npx browserslist'
alias cat='bat'
alias killAppOnPort='f(){ lsof -t -i tcp:"$1" | xargs kill; unset -f f; }; f'
alias listen8080='lsof -i :8080 | grep LISTEN'
alias ll='exa -l'
alias openPorts='lsof -iTCP -sTCP:LISTEN -n -P'
alias ping='prettyping --nolegend'
alias preview="fzf --preview 'bat {}'";
alias simpleHttpServer='python -m SimpleHTTPServer 8080'
alias top='ytop'
alias yarnGlobals='yarn global list'
alias whoIsPort='f(){ lsof -iTCP -sTCP:LISTEN -n -P | awk "NR == 1 || /:$1./"; unset -f f; }; f'
# systemd
alias appRestart=systemctl restart $1
alias appStart=systemctl restart $1
alias appStop=systemctl restart $1
alias appLog='journalctl -u $1 -f'
alias appLogPaged='journalctl -u $1 --no-pager'