Skip to content

Instantly share code, notes, and snippets.

View paukul's full-sized avatar

Pascal Friederich paukul

View GitHub Profile
[ paukul@codeslave ~/code/paukul/githubfuse/lol/skaes ]$ cd ..
[ paukul@codeslave ~/code/paukul/githubfuse/lol ]$ ll
total 8
dr-xr-xr-x 1 paukul staff 4,0K 24 Dez 12:43 skaes/
[ paukul@codeslave ~/code/paukul/githubfuse/lol ]$ mkdir leehambley
[ paukul@codeslave ~/code/paukul/githubfuse/lol ]$ cd leehambley/
[ paukul@codeslave ~/code/paukul/githubfuse/lol/leehambley ]$ ll
total 192
dr-xr-xr-x 1 paukul staff 4,0K 24 Dez 12:43 LOIC/
dr-xr-xr-x 1 paukul staff 4,0K 24 Dez 12:43 benchmark_middleware/
logging_config = { :routing_key => "applogging",
:host => AppConfig.amqp_logging.host,
:exchange => AppConfig.amqp_logging.exchange }
logger = AMQPLogging::Logger.new(config.log_path, logging_config)
config.logger = logger
def all_servers
# go figure...
[:server_1, :server_2, :server_3]
end
def run(stuff)
@active_servers.each {|s| puts "Running #{stuff} on #{s}" }
end
def on(server, &block)
require 'bunny'
#
# By default the logs are routed to the host, exchange and key specified in DEFAULT_OPTIONS
# Change the configuration when creating logger with an argument hash:
#
# logging_config = { :routing_key => "applogging",
# :host => AppConfig.amqp_logging.host,
# :exchange => AppConfig.amqp_logging.exchange }
#
curl -o /tmp/skaes-rubypatches-ruby-187-24843.patch https://gist.github.com/raw/2d90a8e61044074bbfe5/6d944ebeb0eaa80e64e167df4537a622d11ac5da/svn-diff-skaes-ruby.patch
rvm install 1.8.7-r24843 --patch /tmp/skaes-rubypatches-ruby-187-24843.patch -C --enable-gcdebug
rm /tmp/skaes-rubypatches-ruby-187-24843.patch
diff -x .git -x .gitignore -ruB array.c array.c
--- array.c 2010-04-27 21:51:03.000000000 +0200
+++ array.c 2010-04-27 21:11:07.000000000 +0200
@@ -2,8 +2,8 @@
array.c -
- $Author: shyouhei $
- $Date: 2009-02-05 00:55:33 +0100 (Do, 05 Feb 2009) $
+ $Author$
# an extract from the deploy.rb with duty_free configured monit watches
duty_free_plugin.configure do |monit|
monit.role :log_aggregator, :monit_template => 'general_deamon' do |r|
r.watch :amqp_log_aggregator
end
monit.role :amqp_broker do |r|
r.watch :rabbitmq_server
end
#include "mod.h"
VALUE IntruderMod = Qnil;
extern VALUE IntruderModule;
extern VALUE IntruderTerm;
VALUE intruder_mod_init(VALUE self, VALUE modname, VALUE node){
rb_iv_set(self, "@node", node);
rb_iv_set(self, "@modname", modname);
return self;
#include "ruby.h"
#include "ei_connect.h"
#include "ei.h"
#include <stdlib.h>
#include <string.h>
/*
* Helpfull stuff:
* http://erlang.mirror.su.se/doc/man/ei_connect.html
* http://erlang.org/pipermail/erlang-questions/2003-August/009536.html
#include "ruby.h"
#include "ei_connect.h"
#include "ei.h"
#include <stdlib.h>
#include <string.h>
/*
* Helpfull stuff:
* http://erlang.mirror.su.se/doc/man/ei_connect.html
* http://erlang.org/pipermail/erlang-questions/2003-August/009536.html