From 74e288699877a1e4ab3821c1c904049661539595 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 11 Sep 2014 15:20:03 -0400 Subject: [PATCH] update aliases bench and task --- .bash_aliases | 5 +++++ .bashrc | 11 +++++++++++ .taskrc | 10 +++++----- .vimrc | 4 ++++ bin/benchx.awk | 11 +++++++++++ 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 bin/benchx.awk diff --git a/.bash_aliases b/.bash_aliases index 72bd4f1..5c2242b 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -90,6 +90,11 @@ alias srsly="orly -s" alias whothefuckis='finger' alias whoami="echo 24601" +dobenchx() { + benchcmp $1 $2 | awk -f $HOME/bin/benchx.awk +} +alias benchx=dobenchx + #function gvim () { #`which gvim` $* &> /dev/null #} diff --git a/.bashrc b/.bashrc index 065799a..8f76c72 100644 --- a/.bashrc +++ b/.bashrc @@ -136,3 +136,14 @@ if [ -n "`which fortune`" ]; then fortune fi + +# The next line updates PATH for the Google Cloud SDK. + +if [ -f ~/local/google-cloud-sdk/path.bash.inc ]; then + . ~/local/google-cloud-sdk/path.bash.inc +fi + +# The next line enables bash completion for gcloud. +if [ -f ~/local/google-cloud-sdk/completion.bash.inc ]; then + . ~/local/google-cloud-sdk/completion.bash.inc +fi diff --git a/.taskrc b/.taskrc index 2d7e54e..6784657 100644 --- a/.taskrc +++ b/.taskrc @@ -12,8 +12,6 @@ # Files data.location=~/.task -pull.default.uri=barak@miranda.barakmich.com:/fs/home/barak/.task/ -push.default.uri=barak@miranda.barakmich.com:/fs/home/barak/.task/ # Color theme (uncomment one to use) #include /usr/share/doc/task/rc/light-16.theme @@ -27,6 +25,8 @@ push.default.uri=barak@miranda.barakmich.com:/fs/home/barak/.task/ #include /usr/share/doc/task/rc/dark-yellow-green.theme #include /usr/share/doc/task/rc/dark-gray-256.theme -taskd.server=localhost:6544 -taskd.credentials=Barakmich.com\/barak\/6982469b-087e-4243-a1b7-1f411bc68194 -taskd.certificate=\/home\/barak\/.task\/client.cert.pem +taskd.server=freecinc.com:53589 +taskd.credentials=FreeCinc\/freecinc_d9da621f\/9b20be7a-db4e-45a3-aa6e-61173f5988e4 +taskd.certificate=\/home\/barak\/.task\/freecinc_d9da621f.cert.pem +taskd.key=\/home\/barak\/.task\/freecinc_d9da621f.key.pem +taskd.ca=\/home\/barak\/.task\/freecinc_d9da621f.ca.pem diff --git a/.vimrc b/.vimrc index 6dd9fd1..ccd0cad 100644 --- a/.vimrc +++ b/.vimrc @@ -494,6 +494,8 @@ nnoremap j nnoremap k nnoremap l nnoremap h +"nnoremap w +"nnoremap W inoremap j inoremap k inoremap l @@ -510,6 +512,8 @@ inoremap jj " Leader key functions " See quickfix. nnoremap ff :QFix +" See quickfix. +nnoremap ss :SyntasticSetLoclist " Next quickfix. nnoremap fn :cnext " Prev quickfix. diff --git a/bin/benchx.awk b/bin/benchx.awk new file mode 100644 index 0000000..c3a1c3d --- /dev/null +++ b/bin/benchx.awk @@ -0,0 +1,11 @@ +{ + x = substr($4, 1,1) + v = substr($4, 2, length($4) - 2) + if (x == "+") { + printf "%s\t%s%.2fx\n", $0, x, (100 + v) / 100; + } else if (x == "-") { + printf "%s\t%s%.2fx\n", $0, x, (100 / (100 - v)); + } else { + printf "%s\t%s\n", $0, "mult" + } +}