Skip to content

Instantly share code, notes, and snippets.

Micha Wotton michaw

  • Sydney, Australia
Block or report user

Report or block michaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View benchmark.sh
#!/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 / import.js
Created Sep 4, 2014
jQuery script for using HTMLImport as HTML templates
View import.js
/**
* @author: Micha Wotton
* @version: 0.1
*
* To import an HTML file and inject it's content into a target container.
* Uses an additional data attribute on the 'link' element to identify target element.
* Format link tags as follows:
* <link type="import" href="path/to/import.html" dat-target="targetElementID">
*
* You can also use further imports within imported files. This script will recursively inject them,
View git-selective-merge.md

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:

You can’t perform that action at this time.