Skip to content

Instantly share code, notes, and snippets.

while true; do free | sed -En "s/.*buffers\/cache:\s+([0-9]+).*/\1/p" >> ~/trounoir/maram; sleep 1; done
@laem
laem / autogitignoredrsync.sh
Last active August 29, 2015 14:16
Watch for local changes, exluding according to ./.gitignore, to rsync to $dest
#!/bin/bash
#
# Fork of https://gist.github.com/senko/1154509#file-onchange-sh
if [ -z "$1" ]; then
echo "Specify an rsync dest as first argument"
exit -1;
fi
EVENTS="CREATE,CLOSE_WRITE,DELETE,MODIFY,MOVED_FROM,MOVED_TO"
//JSX code
<HBar
data={randomData()}
width="230"
height="300"
axis="false"
sort="descending"
formatter={formatter}
//lighten for 150ms an element that appeared or that was reordered. Requires barColor
//JSX code
<HBar
data={randomData(9, 10000, true)}
width="230"
height="300"
focus="3" // focus on the 3rd bar
textPosition="dynamic" // insert texts in bars if possible
axis="false"
sort="descending"
//JSX code
<HBar
// data is an array of {v: 18, label: "Joseph"} objects
data={randomData()}
/>
//CSS