dotfiles/roles/shell-dotfiles/files/aliases

80 lines
3.1 KiB
Plaintext

alias ipcurl='curl icanhazip.com && curl --silent https://geoiptool.com/|grep maker_country | cut -d" " -f5 | cut -d"<" -f1 | head -n1'
alias toripcurl='torify curl icanhazip.com && torify curl --silent http://geoiptool.com/|grep maker_country | cut -d" " -f5 | cut -d"<" -f1 | head -n1'
alias grep="grep --color"
alias yt='cd ~/Musica/; torify youtube-dl -x -c -o "%(title)s.%(ext)s" -f "bestaudio" --audio-format "mp3" --audio-quality 0 '
alias notify-send='notify-send -i terminal'
alias ls='ls --color'
alias ec="emacsclient -t"
alias nav="qutebrowser --target tab-bg-silent "
alias rmr="/bin/rm"
alias weechat="docker run -ti --name weechat --rm -v ~/.weechat:/weechat --net=host registry.daemons.it/weechat"
alias scrcpy='docker run -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.android:/root/.android -v /tmp/.X12-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -p 5037:5037 -v $HOME/.Xauthority:/root/.Xauthority --net=host registry.daemons.it/scrcpy'
alias alpine='docker run -ti alpine sh'
alias ledger="ledger -f ~/Documentos/Finanzas/finanzas.ldg"
alias gitinit="git config user.email drymer@autistici.org; git config user.name drymer; git config commit.gpgsign true"
alias ytv="cd ~/.syncthing/VideosMovil; torify youtube-dl -f 18 "
alias h='function hdi(){ howdoi $* -n 3; }; hdi'
alias watch='watch -n1'
alias cwd='pwd | tr -d "\r\n" | xclip -selection clipboard'
alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'"
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\\: .*|GET \\/.*\""
alias alarm="notify-send -u critical \"Ya ha terminado el proceso\""
# A beautiful cat: go get -u github.com/jingweno/ccat
alias cat="ccat"
# Kubernetes, copied from oh my zsh plugin
# This command is used a LOT both below and in daily life
alias k=kubectl
# Apply a YML file
alias kaf='kubectl apply -f'
# Drop into an interactive terminal on a container
alias keti='kubectl exec -ti'
# Manage configuration quickly to switch contexts between local, dev ad staging.
alias kcuc='kubectl config use-context'
alias kcsc='kubectl config set-context'
alias kcdc='kubectl config delete-context'
alias kccc='kubectl config current-context'
# Pod management.
alias kgp='kubectl get pods'
alias kep='kubectl edit pods'
alias kdp='kubectl describe pods'
alias kdelp='kubectl delete pods'
# Service management.
alias kgs='kubectl get svc'
alias kes='kubectl edit svc'
alias kds='kubectl describe svc'
alias kdels='kubectl delete svc'
# Ingress management
alias kgi='kubectl get ingress'
alias kei='kubectl edit ingress'
alias kdi='kubectl describe ingress'
alias kdeli='kubectl delete ingress'
# Secret management
alias kgsec='kubectl get secret'
alias kdsec='kubectl describe secret'
alias kdelsec='kubectl delete secret'
# Deployment management.
alias kgd='kubectl get deployment'
alias ked='kubectl edit deployment'
alias kdd='kubectl describe deployment'
alias kdeld='kubectl delete deployment'
alias ksd='kubectl scale deployment'
alias krsd='kubectl rollout status deployment'
# Rollout management.
alias kgrs='kubectl get rs'
alias krh='kubectl rollout history'
alias kru='kubectl rollout undo'
# Logs
alias kl='kubectl logs'
alias klf='kubectl logs -f'