update aliases bench and task
This commit is contained in:
parent
8e74da7b16
commit
74e2886998
5 changed files with 36 additions and 5 deletions
|
|
@ -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
|
||||
#}
|
||||
|
|
|
|||
11
.bashrc
11
.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
|
||||
|
|
|
|||
10
.taskrc
10
.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
|
||||
|
|
|
|||
4
.vimrc
4
.vimrc
|
|
@ -494,6 +494,8 @@ nnoremap <C-j> <C-w>j
|
|||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-l> <C-w>l
|
||||
nnoremap <C-h> <C-w>h
|
||||
"nnoremap <C-j> <C-w>w
|
||||
"nnoremap <C-k> <C-w>W
|
||||
inoremap <C-j> <C-w>j
|
||||
inoremap <C-k> <C-w>k
|
||||
inoremap <C-l> <C-w>l
|
||||
|
|
@ -510,6 +512,8 @@ inoremap jj <Esc>
|
|||
" Leader key functions
|
||||
" See quickfix.
|
||||
nnoremap <Leader>ff :QFix<CR>
|
||||
" See quickfix.
|
||||
nnoremap <Leader>ss :SyntasticSetLoclist<CR>
|
||||
" Next quickfix.
|
||||
nnoremap <Leader>fn :cnext<CR>
|
||||
" Prev quickfix.
|
||||
|
|
|
|||
11
bin/benchx.awk
Normal file
11
bin/benchx.awk
Normal file
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue