interesting shell aliases added
authorpatrick nsukami <ndkpatt@gmail.com>
Tue, 16 Dec 2014 20:21:46 +0000 (20:21 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Tue, 16 Dec 2014 20:21:46 +0000 (20:21 +0000)
.bash_aliases

index bfd0d5a..9dbf0dd 100644 (file)
@@ -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)'