Skip to content

Instantly share code, notes, and snippets.

Avatar

Orsiris de Jong deajan

View GitHub Profile
View tuning kvm
************************************************************************
IO
On the host OS, list the I/O scheduler currently in use, substituting the block device with whatever is appropriate for your system:
root@kvm:~# cat /sys/block/sda/queue/scheduler
noop deadline [cfq]
root@kvm:~#
Change the I/O scheduler on demand and ensure it is in use by running:
View csv2json.sh
#!/bin/bash
# CSV to JSON converter using BASH
# original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/
# thanks SecaGuy!
# Usage ./csv2json.sh input.csv > output.json
input=$1
[ -z $1 ] && echo "No CSV input file specified" && exit 1
[ ! -e $input ] && echo "Unable to locate $1" && exit 1
You can’t perform that action at this time.