My bashrc

Typos Link to heading

alias ms='ls
alias sls='ls'
alias sl='ls'
alias l='ls'
alias ll='ls'
alias ls='ls --color=auto'


alias gerp='grep'
alias grp='grep
alias grpe='grep'
alias grep='grep --color=auto' 

Get files hashes Link to heading

geth(){

    echo "$1 :"
    md5sum < "$1" | tr -d '-'
    sha1sum < "$1" | tr -d '-'
    sha256sum <"$1" | tr -d '-'
    ssdeep < "$1" | tail -n 1 | cut -d "," -f 1
}
alias h='geth'

Output :

[ xor ]
11b86509a02755a3f9c4a7b2afdb57e8  
1758f8074850919883e0ea6e87d4b1dc09a0ee7c397a3007d9b1101c4fd1f963  
192:R2iw272oe/k6s8Svm8n93BSyBBXjP/vq7j:n70vs8/q931nGH

[ xor.c ]
d1791b89a914df79c7da611fba8ec094  
08182993af42f0f6f5b2da6901f71270a602bf0bb62d60f675736b911b9b4664  
24:2xfUOYGdBPSAldaEstdShfVOD+qD48FXKtY:2x9YePSAldandusyKpKy

Docker status with colors Link to heading

function dockerstatus(){
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color

while read dockerline
do
container=$(echo "$dockerline" | rev | cut -d\  -f 1 | rev)
grep ' Up' <<< $dockerline >/dev/null && echo -ne "${GREEN} ⚫${NC}" || echo -ne "${RED} ⚫${NC}"
echo "$container"
done <<< $(docker ps -a | tail -n +2)
}

alias ds='dockerstatus'

Do things harder Link to heading

Download harder Link to heading

alias wgethormones='aria2c -x 10 -s 10'

### Sort harder

alias sort='sort --parallel=10'

xxd display with more columns Link to heading

alias xxd='xxd -c 40'

Compile harder Link to heading

alias make='make -j 12'