-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
49 lines (45 loc) · 1.9 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
# Aliases for a few useful commands
alias dots='git -C ~/.dotfiles pull'
alias pacman-ghost='~/.scripts/pacman.sh'
# Remove orphaned packages.
# Arguments to "pacman -Q":
# -d restrict output to packages installed as dependencies
# -t list packages that are no longer required by any installed package
# -q suppress version numbers of packages (this would confuse pacman -R)
alias cat='bat'
alias h='htop'
alias ls='lsd'
alias l='ls -l'
alias la='ls -a'
alias ld='lazydocker'
alias lg='lazygit'
alias lla='ls -la'
alias lt='ls --tree'
alias myip="curl http://ipecho.net/plain; echo"
alias nano='nvim'
alias npm-list="npm list -g --depth 0"
alias pacman-clean='pacman-ghost && sudo pacman -R $(pacman -Qdtq)'
alias rm='rm -i'
alias tldr="tldr --list | fzf --preview 'tldr {} --color always' | xargs tldr"
alias vim='nvim'
alias x='ranger'
## DOCKER OTHER ##
function busy() {
if [ "$1" != "" ] # or better, if [ -n "$1" ]
then
docker run -it --rm svenstaro/genact -m "$1"
else
docker run -it --rm svenstaro/genact -h
fi
}
## FUN TOOLS ##
alias aquarium="docker run --rm -t docker.pkg.github.com/medoix/aquarium/aquarium:latest"
## SECURITY TOOLS ##
# mitmproxy Docker
alias proxy="docker run --rm -it -p 8080:8080 -p 127.0.0.1:8081:8081 mitmproxy/mitmproxy mitmweb --web-host 0.0.0.0"
# Kali Docker
alias kali-update="docker login docker.pkg.github.com --username medoix --password $(pass github-packages) && docker pull docker.pkg.github.com/medoix/kali-docker/kali-docker:latest"
alias kali="docker run --rm -it -v $HOME/cloud/security:/root/security docker.pkg.github.com/medoix/kali-docker/kali-docker:latest /bin/bash"
# ZAP Proxy
alias zap-base="docker run --rm -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-baseline.py -t ${1} -g gen.conf -r -zap-base.html"
alias zap-full="docker run --rm -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-full-scan.py -t ${1} -r zap-full.html"