Skip to content

Instantly share code, notes, and snippets.

@trastle
trastle / .gitconfig_part
Created April 15, 2013 16:18
Snippet from .gitconfig to use kdiff3 as the difftool and mergetool on OSX
[alias]
dt = difftool
mt = mergetool
[diff]
tool = kdiff3
prpmpt = false
[merge]
tool = kdiff3
@trastle
trastle / toJSONArray.sh
Last active December 16, 2015 01:18
Converts an input file into a JSON array. Each line of the file will become an element in the array.
#!/bin/bash
DATA_FILE="$1"
OUT_FILE="$DATA_FILE.json"
if [ ! -f "$DATA_FILE" ]; then
echo "Data file is missing please specify a data file on the command line."
exit 1
fi
@trastle
trastle / build-tsungws
Last active December 15, 2015 18:09
A script to build tsung with tsung_ws on OSX
#!/bin/bash
function getWhatWeNeed {
brew install erlang
brew install gnuplot
}
function getCode {
echo -e "\n\nDownloading code...\n\n"
# Get the version of tsung we need