Skip to content

Instantly share code, notes, and snippets.

View arusso's full-sized avatar

Aaron Russo arusso

View GitHub Profile
@arusso
arusso / 10_passenger.conf
Created October 24, 2012 16:01
Passenger Config
# /etc/httpd/conf.d/10_passenger.conf
# Load passenger module
LoadModule passenger_module /usr/lib64/httpd/modules/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12
PassengerRuby /usr/bin/ruby
# some recommended settings for puppet
PassengerHighPerformance on
PassengerUseGlobalQueue on
@arusso
arusso / java-1.6.0-ibm
Created September 19, 2012 05:06
RPM Provides for Java 1.6.0
[root@eu-puppet-dev-01 ~]# rpm -q --provides java-1.6.0-ibm
jre-1.6.0-ibm = 1:1.6.0.11.0-1jpp.1.el6_3
jre-ibm = 1:1.6.0.11.0-1jpp.1.el6_3
jre-1.6.0
java-1.6.0
jre = 1:1.6.0
java-ibm = 1:1.6.0.11.0-1jpp.1.el6_3
java = 1:1.6.0
javaws = 1.6.0
jndi = 1:1.6.0.11.0
@arusso
arusso / main.cc
Created June 18, 2012 00:43
simple calculator
#include <iostream>
#include <string>
using namespace std;
// Function Declarations
int get_value(string msg);
char get_operator(string msg);
int compute(int lhs, int rhs, char op);
WAIT_TIME=15 # in minutes
OUT=`find . -mmin -${WAIT_TIME} | grep restart`
if [ "$OUT" == "" ]; then
# we haven't committed murder in $WAIT_TIME minutes, lets do it again
/bin/kill -f `ps ux -W | grep srcd | awk '{print $1}'`
# touch our breadcrumb
touch restart
fi