This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
color() { | |
echo -e "\033[0;$1m$2\033[0m" | |
} | |
echo_red() { | |
color 31 "$1" | |
} | |
echo_green() { | |
color 32 "$1" | |
} | |
echo_yellow() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# | |
# Collectd automatic compile and installation script | |
# for debian systems | |
# | |
# Stephen Wood | |
# www.heystephenwood.com | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting up the wireless on your raspbian pi is tricky over the commandline. Here's some example settings that should get you online with a typical wpa wireless G network. | |
```/etc/network/interfaces``` | |
``` | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Installs Hbase and OpenTSDB to /opt | |
# Will start OpenTSDB listening on 0.0.0.0:4242 | |
apt-get install -y vim git-core autoconf openjdk-7-jdk gnuplot-nox make | |
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update -y | |
aptitude install -y build-essential | |
wget "http://downloads.sourceforge.net/project/e1000/ixgbevf%20stable/2.16.1/ixgbevf-2.16.1.tar.gz" | |
tar -zxf ./ixgbevf-* | |
cd ixgbevf*/src | |
make install | |
modprobe ixgbevf | |
sudo update-initramfs -c -k all | |
echo "options ixgbevf InterruptThrottleRate=1,1,1,1,1,1,1,1" > /etc/modprobe.d/ixgbevf.conf |
NewerOlder