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 | |
while [ 1 ]; do | |
ifconfig "$1" | grep "TX bytes" | sed "s/.*RX bytes:\([0-9]*\).*TX bytes:\([0-9]*\).*/\1 \2/" >> "$2" | |
sleep 1 | |
done |
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
// check for GL errors and print them to stderr | |
inline void glError(const char* location) | |
{ | |
GLenum e; | |
e = glGetError(); | |
if (e != GL_NO_ERROR) | |
{ | |
fprintf (stderr, "ERROR!!! %s, %s\n", location, gluErrorString(e)); | |
e = glGetError(); | |
while (e != GL_NO_ERROR) |
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
# Find Bullet includes and library | |
# | |
# This module defines | |
# Bullet_INCLUDE_DIRS The location of the Bullet header files | |
# Bullet_LIBRARIES The libraries to link against to use Bullet | |
# Bullet_FOUND If false, do not try to use Bullet | |
# | |
# To specify an additional directory to search, set Bullet_ROOT. | |
# | |
# If the absence of Bullet is a fatal error, set Bullet_FIND_REQUIRED to TRUE. |
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
Index: install | |
=================================================================== | |
--- install (revision 78) | |
+++ install (working copy) | |
@@ -410,7 +410,7 @@ | |
user_eval "cd ${DIR} && | |
tar -jxf boost_1_37_0.tar.bz2 && | |
cd boost_1_37_0 && | |
- ./configure --without-icu --without-libraries=python --prefix=${DIR}/installed-boost && | |
+ ./configure --without-icu --with-libraries=system,program_options,thread,filesystem,regex --prefix=${DIR}/installed-boost && |
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
From a689986179e140d1c4f1d8d07299bdf8ef5879c4 Mon Sep 17 00:00:00 2001 | |
From: Ewen Cheslack-Postava <[email protected]> | |
Date: Thu, 30 Jul 2009 23:25:24 -0700 | |
Subject: [PATCH] Add virtual destructor to WebViewListener. | |
--- | |
Awesomium/include/WebViewListener.h | 2 ++ | |
1 files changed, 2 insertions(+), 0 deletions(-) | |
diff --git a/Awesomium/include/WebViewListener.h b/Awesomium/include/WebViewListener.h |
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
From 274a96b92f90e6b8367463bb777617cd2da33fa9 Mon Sep 17 00:00:00 2001 | |
From: Ewen Cheslack-Postava <[email protected]> | |
Date: Tue, 9 Mar 2010 20:19:26 -0800 | |
Subject: [PATCH] Raise an exception if VM import fails. | |
--- | |
lib/vagrant/actions/vm/import.rb | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/lib/vagrant/actions/vm/import.rb b/lib/vagrant/actions/vm/import.rb |
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
#!/usr/bin/env bash | |
# | |
# Run as | |
# bash -c "$(curl -fsS http://gist.github.com/raw/639036/install-debian-sirikata-system-deps.sh)" | |
# to get a single command install (avoids requiring you to download and separately run the command). | |
sudo apt-get install \ | |
git-core cmake sed unzip zip automake1.9 nvidia-cg-toolkit jam g++ \ | |
libzzip-dev libxt-dev libxaw7-dev libxxf86vm-dev libxrandr-dev libfreetype6-dev \ | |
libxext-dev autoconf libtool libpcre3-dev flex bison patch libbz2-dev gawk \ |
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 | |
# See https://docs.google.com/Doc?id=dgmmft5s_45hr7hmggr for details on how this script was put together | |
sudo apt-get install -y build-essential libapr1-dev libconfuse-dev libexpat1-dev python-dev libpcre3-dev librrd2-dev | |
mkdir ganglia | |
cd ganglia | |
wget -O ganglia-3.1.7.tar.gz "http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fganglia%2Ffiles%2Fganglia%2520monitoring%2520core%2F&ts=1288907147&use_mirror=softlayer" |
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 | |
# See https://docs.google.com/Doc?id=dgmmft5s_45hr7hmggr for details on how this script was put together | |
sudo apt-get install -y build-essential libapr1-dev libconfuse-dev libexpat1-dev python-dev libpcre3-dev librrd2-dev apache2 php5-mysql libapache2-mod-php5 rrdtool | |
mkdir ganglia | |
cd ganglia | |
wget -O ganglia-3.1.7.tar.gz "http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fganglia%2Ffiles%2Fganglia%2520monitoring%2520core%2F&ts=1288907147&use_mirror=softlayer" |
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
GCC_VERSION=`gcc --version | grep ^gcc | cut -d " " -f 4` | |
GCC_VERSION_MAJOR=`gcc --version | grep ^gcc | cut -d " " -f 4 | cut -d "." -f 1` | |
GCC_VERSION_MINOR=`gcc --version | grep ^gcc | cut -d " " -f 4 | cut -d "." -f 2` | |
GCC_VERSION_REV=`gcc --version | grep ^gcc | cut -d " " -f 4 | cut -d "." -f 3` | |
if [ "${GCC_VERSION_MAJOR}" -gt "4" -o "${GCC_VERSION_MAJOR}" -eq "4" -a "${GCC_VERSION_MINOR}" -ge "6" ]; then | |
GCC_46_FIX_CXXFLAGS="-Wno-conversion-null -Wno-unused-but-set-variable -Wno-unused-result -Wno-int-to-pointer-cast" | |
else | |
GCC_46_FIX_CXXFLAGS="" | |
fi |
OlderNewer