Skip to content

Instantly share code, notes, and snippets.

View michaw's full-sized avatar

Micha Wotton michaw

  • Sydney, Australia
View GitHub Profile
#!/bin/bash
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <line tittle>:<URL1> <line tittle>:<URL2> ..."
echo -e "\nEx: benchmark.sh -n100 -c10 google:http://www.google.com/ bing:http://www.bing.com/ \n"
## Gnuplot settings
echo "set terminal png
set output 'benchmark_${1}_${2}.png'
set title 'Benchmark: ${1} ${2}'
@michaw
michaw / git-selective-merge.md
Created September 13, 2012 11:45 — forked from katylava/git-selective-merge.md
git selective merge

Example: You have a branch refactor that is quite different from master. You can't merge all of the commits, or even every hunk in any single commit or master will break, but you have made a lot of improvements there that you would like to bring over to master.

On master:

> git co -b temp

On temp: