Skip to content

Commit

Permalink
useful functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrom committed Oct 18, 2011
1 parent 8e8c2e9 commit 83c028e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file added bash/ab-plot.ps
Empty file.
6 changes: 6 additions & 0 deletions bash/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@ alias tunnel='ssh -D 8080 -f -C -q -N'

function repeat { n=$1; shift; for ((i=0;i<n;i++)) do $@; done; }

function httplot {
gnuplot -e "set terminal postscript color; set output \"$2.ps\"; set xlabel \"Concurrent requests\"; set ylabel \"ms\"; plot \"$1.tsv\" using 8 with lines title \"Response time\"";
}

alias checkhosted='HOSTED=$(ey ssh "cat /data/Teambox2/current/REVISION" -e hosted)'

0 comments on commit 83c028e

Please sign in to comment.