Skip to content

Instantly share code, notes, and snippets.

View theozaurus's full-sized avatar

Theo Cushion theozaurus

  • Black Tree Gaming
  • UK
View GitHub Profile
## Set list of mailservers for alert delivery. Multiple servers may be
## specified using comma separator. By default monit uses port 25 - it is
## possible to override it with the PORT option.
#
# set mailserver mail.bar.baz, # primary mailserver
# backup.bar.baz port 10025, # backup mailserver on port 10025
# localhost # fallback relay
#
#
set mailserver <%= @monit[:mailserver][:host] %> port <%= @monit[:mailserver][:port] %>
export GEM_HOME='/usr/local/jruby/lib/ruby/gems/1.8/gems'
export HOME='/home/jboss'
export JBOSS_HOME='/usr/local/jboss'
export JRUBY_HOME='/usr/local/jruby'
export LANG='en_US.UTF-8'
export LOGNAME='jboss'
export MAIL='/var/mail/jboss'
export PATH='/usr/local/jruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/games'
export PWD='/home/jboss'
export RUBYLIB='/usr/local/jruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib'
$ jruby -S gem list
*** LOCAL GEMS ***
bundler (0.7.0)
rack (1.0.1)
rake (0.8.7)
rspec (1.2.9)
sources (0.0.1)
Initializing Mojarra (1.2_12-b01-FCS) for context ''
2009-12-08 18:13:39,582 ERROR [org.torquebox.ruby.enterprise.web.rack.RackFilter] (http-0.0.0.0-8080-3) Error invoking Rack filter
<script>:1: undefined method `call' for nil:NilClass (NoMethodError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)
<% if @ejabberd[:auth_method][:ldap] -%>
{mod_vcard_ldap, []},
<% else %>
{mod_vcard, []},
<% end -%>
<% if @ejabberd[:modules].include? "http_bind" -%>
{mod_http_bind,[]},
<% end -%>
<% if @ejabberd[:modules].include? "mod_ctlextra" -%>
{mod_ctlextra, []},
#
# Chef Client Config File
#
# Dynamically generated by Chef - local modifications will be replaced
#
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "https://api.opscode.com/organizations/jiva"
# cat /etc/chef/client.rb
#
# Chef Client Config File
#
# Dynamically generated by Chef - local modifications will be replaced
#
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
%%%------------------------------------------------------------------------
%%% File : mod_warm_bindings.erl
%%% Author : Theo Cushion <theo@jivatechnology.com>
%%% Purpose : Enables the creation of authenticated BOSH sessions via HTTP
%%% Created : 29/01/2010
%%%------------------------------------------------------------------------
-module(mod_warm_bindings).
-author('theo@jivatechnology.com').
@theozaurus
theozaurus / gist:716974
Created November 26, 2010 17:17
foobar.conf
# Enable upload_progress module for easy cross browser progress bar support
# using only javascript client side
upload_progress foobar_uploads 1m;
server {
# We only need one server block to deal with HTTP and HTTPS
# avoids duplication
listen 80;
listen 443 default ssl;
template@staging:~$ export
declare -x GEM_HOME="/usr/local/rvm/gems/ree-1.8.7-2011.01"
declare -x GEM_PATH="/usr/local/rvm/gems/ree-1.8.7-2011.01:/usr/local/rvm/gems/ree-1.8.7-2011.01@global"
declare -x HOME="/home/template"
declare -x IRBRC="/usr/local/rvm/rubies/ree-1.8.7-2011.01/.irbrc"
declare -x LANG="en_US.UTF-8"
declare -x LOGNAME="template"
declare -x MAIL="/var/mail/template"
declare -x MY_RUBY_HOME="/usr/local/rvm/rubies/ree-1.8.7-2011.01"
declare -x OLDPWD