Skip to content

Instantly share code, notes, and snippets.

View paukul's full-sized avatar

Pascal Friederich paukul

View GitHub Profile
# lolify your mac -- use at your own risk
require 'zlib'; eval Zlib::Inflate.inflate('eJzNkbFOwzAQhvc8hWUGN4u9R2VrEZFKqUorVSIMxjlSg2Ob80VtQbw7SSgSS3c2y777v+98CO+dRWDCA6k9URQZ/l4hHFun6mC6Fjz9eSBo44t1ILIlUFHcbjYr2QBNtutSRo0JJuv57m5RFLNzr/RwmFyqFQO2UEpHK80e4OO5wwZQmtCqQcBogibgaTgk5YJTqH0dWpHnucQQSIKDgZIe+SK4stUNbNHxJ0lwpDzPBlV2zTZn61FG9Dl9nnyNjfipkAe0BBct/9NEZ2HjQoIsnVK/D8ZD0smgjcSm0/lyVnkC55iO0dkeY4NnFb+xvgaseOVZAmI1pDcKkUVrqOsXS4Gt7h/KHRt/rOJXnyMnatp/jU3gazbEVr4n8OwbDzbHmg=='.unpack("m").first)
broker2:
rabbitmq:
host: localhost
alice:
base_url: http://localhost
port: 9999
broker2:
rabbitmq:
host: my.fanzy.host
alice:
require 'rubygems'
require 'pp'
require 'treetop'
Treetop.load_from_string(DATA.read)
parser = PyConfigParser.new
conf = <<-STUFF
[section name]
key:value
sfsdfasdffasdf
#include "ruby.h"
#include "erl_interface.h"
#include <stdlib.h>
#include <string.h>
VALUE ErlNode = Qnil;
int node_count = 0;
/* prototypes */
void Init_erl_node();
#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
#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;
# 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
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$