| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 | #        _ _#    ___| |_|___ ___ ___ ___#   | .'| | | .'|_ -| -_|_ -|#   |__,|_|_|__,|___|___|___|## Colors in pacman and yayalias pacman='pacman --color=auto'alias yay='yay --color=auto'# More Vim aliases == betteralias v='nvim'alias vi='nvim'alias vim='nvim'# modern-unix tools[ -f "$(which duf)" ] && alias df="duf"[ -f "$(which fd)" ] && alias find="fd -H"[ -f "$(which rg)" ] && alias grep="rg"# cat on wingsalias bat='bat --theme zenburn'# Run vifmrun for image preview with ueberzugalias vifm="$HOME/.config/vifm/scripts/vifmrun"# Configure neovide as gvim alternativefunction gvim {    nohup neovide --multiGrid --disowned $@ >/dev/null 2>&1 &}# some ls aliasesalias ll='ls -alh --color=auto --group-directories-first'alias la='ls -Ah --color=auto --group-directories-first'alias l='ls -CFh --color=auto --group-directories-first'alias ls='ls -CFh --color=auto --group-directories-first'# cd stuffalias ..='cd ..'alias ...='cd ../..'# ripgrep > grepalias ogrep='/usr/bin/grep --color=auto -i' # keep original grep as ogrep# default image vieweralias img=sxiv# default markdown previeweralias md=markdown_previewer# default PDF vieweralias pdf='zathura --fork'# source: github.com/sharkdp/hexylalias hex=hexyl# show open portsalias ports='ss -lust | column -t'alias netstat='netstat -tulanp'alias loadX='xrdb $HOME/.Xresources'alias zzz='systemctl suspend'alias ZZZ='systemctl hibernate'alias python-env="source $HOME/.scripts/misc/python-env"# brightness settingsalias blow='xbacklight -set 10'alias bmed='xbacklight -set 45'alias bhi='xbacklight -set 90'# cd shortcutsalias cdc='cd $HOME/documents/cloud'alias cdi='cd $HOME/.config/i3'alias cdd='cd $HOME/documents'alias cdD='cd $HOME/downloads'alias cdt='cd $HOME/documents/tools'alias cdv='cd $HOME/documents/vms/vagrant-vms'# copy the current path to clipboardalias cpwd='xclip -selection clipboard -i <(pwd | tr -d "\n")'# copy the last command issued to the clipboardalias clc='fc -ln -1 | tr -d "\n" | sed "s/^\s*//g" | xclip -selection clipboard -i'alias fcd='cd $(fd -t d | fzf)'alias cdf='cd $(fd -t d | fzf)'# ipaddralias ipa='ip --brief --color add'# pipe into ccopy --> clipboardalias ccopy='xclip -selection clipboard'alias cpy='xclip -selection clipboard'# IPSalias pubip="dig +short myip.opendns.com @resolver1.opendns.com"alias localip="ip a | grep -Eo 'inet (addr:)?([0-9]*\\.){3}[0-9]*' | grep -Eo '([0-9]*\\.){3}[0-9]*' | grep -v '127.0.0.1'"# search files with fzf and open themfunction sf {        file=$(fzf --preview='head -n$LINES {}')            [ "$file" != "" ] && $EDITOR $file}# Bash Function Snippets# process grepfunction pg {        pgrep -fa "$1" | grep -E --color "$1"}# Funalias makespongebob="python -c 'import sys; makeSpongebob = lambda x: \"\".join([i.upper() if c %2 ==0 else i for c,i in enumerate(x)]);print(makeSpongebob(sys.argv[1]))'"# Docker Aliasesalias podshell="sudo podman run --rm -i -t --entrypoint=/bin/sh"function podshellhere() {    dirname=${PWD##*/}    sudo podman run --rm -it --entrypoint=/bin/sh -v `pwd`:/${dirname} -w /${dirname} "$@"}alias nginxhere="sudo podman run --rm -ti -p 80:80 -p 443:443 -v `pwd`:/srv/data swrzm/nginx"# Opening a SMB server in the same dirsmbhere() {    local sharename    [[ -z $1 ]] && sharename="SHARE" || sharename=$1    sudo podman run --rm -it -p 445:445 -v "${PWD}:/tmp/serve" swrzm/impacket smbserver.py -smb2support $sharename /tmp/serve}# Runnerrun() {    nohup $@ & 2>&1 > /dev/null}# ---[it sec stuff]--- ## Disassemble using objdumpdisas() {        objdump -M intel -d $@    }
 |