This file contains hidden or 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
| [ 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/ |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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) |
This file contains hidden or 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
| 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 } | |
| # |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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$ |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| #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; |
This file contains hidden or 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
| #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 |
This file contains hidden or 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
| #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 |