|
@@ -5,6 +5,7 @@
|
|
|
##############################################################################
|
|
|
|
|
|
alias ..='cd ..'
|
|
|
+alias h='cd ~'
|
|
|
alias isodate='date -u +"%Y-%m-%dT%H:%M:%SZ"'
|
|
|
alias tsp="ts '[%Y-%m-%dT%H:%M:%S:%SZ]'" # prepend an iso timestamp (requires moreutils)
|
|
|
alias as_super='sudo $(fc -ln -1)' # Rerun last command w/ sudo
|
|
@@ -15,6 +16,16 @@ alias become_death=become_root
|
|
|
alias killit="kill -9 `ps aux | grep -i "$1" | grep -v "grep" | awk '{ print $2}'`" # Send SIGKILL to named process
|
|
|
alias top_commands="cut -f1 -d\" \" .bash_history | sort | uniq -c | sort -nr | head -n 30"
|
|
|
alias get_url="grep -Eo \"(http|https)://[\da-z./?A-Z0-9\D=_-]*\""
|
|
|
+alias awk1="awk '{print \$1}'"
|
|
|
+alias awk2="awk '{print \$2}'"
|
|
|
+alias awk3="awk '{print \$3}'"
|
|
|
+alias awklast="rev | awk1 | rev"
|
|
|
+
|
|
|
+
|
|
|
+function killit {
|
|
|
+ ps aux | grep -i "$1" | grep -v "grep" | awk '{ print $2}' | xargs kill -9
|
|
|
+}
|
|
|
+
|
|
|
export ROME=$PATH:$PYTHONPATH:$CLASSPATH:$ORACLEPATH:$FOOPATH:$LOLPATH:$YOLOPATH:$(which python)
|
|
|
|
|
|
function gpid() {
|
|
@@ -120,3 +131,6 @@ function nmap_scan_port() {
|
|
|
}
|
|
|
|
|
|
|
|
|
+function md5dir {
|
|
|
+ find -s "$1" -type f -exec md5 {} \; | md5
|
|
|
+}
|