From: patrick nsukami Date: Tue, 16 Dec 2014 20:21:46 +0000 (+0000) Subject: interesting shell aliases added X-Git-Url: https://git.nskm.xyz/?p=dotfiles;a=commitdiff_plain;h=ed650cd0e3041fe144cce96fcc69e96d278c5419 interesting shell aliases added --- diff --git a/.bash_aliases b/.bash_aliases index bfd0d5a..9dbf0dd 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,6 +1,14 @@ #!/bin/sh # my weird aliases +# test disk read/write speed +my_disk_write_speed="dd if=/dev/zero of=/tmp/output.img bs=8k count=256k conv=fdatasync; rm -rf /tmp/output.img" +my_disk_read_speed="hdparm -Tt /dev/sda" + +# generate random password, 16 char long +my_gen_pwd="LANG=c < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;" +my_gen_pwd2="openssl rand -base64 16" + # go to root dir alias git-root='cd $(git rev-parse --show-cdup)'