This file contains 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
2.0.0dev :001 > class Foo; end | |
=> nil | |
2.0.0dev :002 > class Bar; end | |
=> nil | |
2.0.0dev :003 > class Baz; end | |
=> nil | |
2.0.0dev :010 > module Runner | |
2.0.0dev :011?> [Foo,Bar,Baz].each do |klass| | |
2.0.0dev :012 > refine klass do | |
2.0.0dev :013 > def run |
This file contains 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
AistroidsCom::Application.routes.draw do | |
root :to => "home#index" | |
devise_for :users | |
resources :bots | |
resources :users do | |
resources :bots | |
end | |
end |
This file contains 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
<Rule "to_aggregation"> | |
<Match regex> | |
Plugin "myplugin" | |
</Match> | |
<Target write> | |
Plugin aggregation | |
</Target> | |
</Rule> | |
This file contains 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
ohai network/default_interface | |
[ | |
"venet0" | |
] |
This file contains 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 get_rrd_backend | |
Visage::Collectd::RRD.new( :rrddir => Visage::Config.rrddir, | |
:collectdsock => Visage::Config.collectdsock, | |
:rrdcachedsock => Visage::Config.rrdcachedsock) | |
end | |
def get_foo_backend | |
# something else | |
end |
This file contains 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
NameVirtualHost *:8081 | |
<VirtualHost *:8081> | |
ServerName 10.0.2.15 | |
DocumentRoot "/opt/logstash/kibana/current" | |
<Directory "/opt/logstash/kibana/current"> | |
DirectoryIndex index.php | |
</Directory> |
This file contains 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
class Foo | |
end | |
describe Foo do | |
it "should call the right equals method" do | |
Foo.new.should be_equal Foo.new | |
end | |
end |
This file contains 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
D, [2012-11-02T18:24:04.320000 #29703] DEBUG -- : TRYING stanzacbs... | |
D, [2012-11-02T18:24:04.320000 #29703] DEBUG -- : TRYING message/iq/presence/cbs... | |
W, [2012-11-02T18:24:04.332000 #29703] WARN -- : EXCEPTION: | |
REXML::ParseException | |
#<Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)> | |
org/jruby/RubyRegexp.java:1505:in `match' | |
file:/opt/logstash/server/lib/logstash-1.1.4.jar!/META-INF/jruby.home/lib/ruby/1.9/rexml/source.rb:212:in `match' | |
file:/opt/logstash/server/lib/logstash-1.1.4.jar!/META-INF/jruby.home/lib/ruby/1.9/rexml/parsers/baseparser.rb:369:in `pull' | |
file:/opt/logstash/server/lib/logstash-1.1.4.jar!/META-INF/jruby.home/lib/ruby/1.9/rexml/parsers/sax2parser.rb:92:in `parse' | |
file:/opt/logstash/server/lib/logstash-1.1.4.jar!/gems/xmpp4r-0.5/lib/xmpp4r/streamparser.rb:79:in `parse' |
This file contains 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
# Description: | |
# Log all the things to ElasticSearch then lets you ask hubot what you missed | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# ELASTICSEARCH_HOSTNAME - E.G. elasticsearch.example.com:9200, where to send the put requests | |
# ELASTICSEARCH_USERNAME - OPTIONAL basic auth username | |
# ELASTICSEARCH_PASSWORD - OPTIONAL basic auth password |
This file contains 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
#!/usr/bin/env ruby | |
BASE_REMOTE_URL = "git@github.blueboxgrid.com:chef" | |
folders = ARGV | |
pwd = Dir.pwd | |
folders.each do |folder| | |
name = folder.split("/").last | |
name = name.gsub("-","_") | |
clone_command = "git clone chef/ #{name}" | |
system clone_command | |
Dir.chdir name |