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
using System; | |
using System.Text; | |
using System.Collections.Generic; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using MessagePack; | |
using MessagePack.Formatters; | |
using MessagePack.Resolvers; | |
namespace X2Tests |
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
Checking clang: found | |
Checking clang++: found | |
Checking for 'llvm-config': found! (version 3.8.1 - api: 308) | |
Checking sizeof(short): 2 bytes | |
Checking sizeof(int): 4 bytes | |
Checking sizeof(void*): 8 bytes | |
Checking sizeof(size_t): 8 bytes | |
Checking sizeof(long): 8 bytes | |
Checking sizeof(long long): 8 bytes |
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
** Invoke gems:melbourne (first_time) | |
** Execute gems:melbourne | |
/Users/Schmurfy/Dev/personal/forks/rubinius/rubinius/staging/bin/rbx ./extconf.rbc | |
make && make install | |
** Invoke gems:extensions (first_time) | |
** Execute gems:extensions | |
/Users/Schmurfy/Dev/personal/forks/rubinius/rubinius/staging/bin/rbx extconf.rb | |
main # Rubinius::Loader at core/loader.rb:855 | |
rubygems # Rubinius::Loader at core/loader.rb:603 | |
load_rubygems . Rubinius::CodeLoader at core/code_loader.rb:561 |
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
{ | |
"results": [ | |
{ | |
"series": [ | |
{ | |
"name": "alerts", | |
"tags": { | |
"app_name": "mountpoints", | |
"host": "myhost", | |
"id": "", |
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
* thread #1: tid = 0x55bf9, 0x0000000100015e48 mruby`mrb_realloc_simple(mrb=0x746e65746e6f0006, p=0x0000000000000000, len=96) + 24 at gc.c:201, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) | |
frame #0: 0x0000000100015e48 mruby`mrb_realloc_simple(mrb=0x746e65746e6f0006, p=0x0000000000000000, len=96) + 24 at gc.c:201 | |
198 { | |
199 void *p2; | |
200 | |
-> 201 p2 = (mrb->allocf)(mrb, p, len, mrb->allocf_ud); | |
202 if (!p2 && len > 0 && mrb->gc.heaps) { | |
203 mrb_full_gc(mrb); | |
204 p2 = (mrb->allocf)(mrb, p, len, mrb->allocf_ud); | |
(lldb) bt |
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
require 'active_record' | |
require 'sqlite3' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'sqlite3', | |
:database => ':memory:' | |
) | |
ActiveRecord::Base.connection.instance_eval do |
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
require 'scorched' | |
class AppBase < Scorched::Controller | |
get('/1'){ render 'one' } | |
end | |
class App < AppBase | |
get('/2'){ render 'two' } | |
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
source 'https://rubygems.org' | |
gem 'activerecord', '= 3.2.0' | |
# gem 'activerecord', '~> 4.0.0' | |
# gem 'activesupport', path: File.expand_path('../rails/activesupport', __FILE__) | |
# gem 'activemodel', path: File.expand_path('../rails/activemodel', __FILE__) | |
# gem 'activerecord', path: File.expand_path('../rails/activerecord', __FILE__) | |
gem 'sqlite3' |
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
require 'rubygems' | |
require 'bundler/setup' | |
require 'celluloid' | |
require 'celluloid/monitoring' | |
require 'celluloid/autostart' | |
class SpyMaster | |
include Celluloid | |
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 | |
# | |
# forking supervisor - forks workers and replaces dead workers. | |
# start it in one console, send signals to it from another console. | |
# | |
require 'rubygems' | |
require 'daemons/daemonize' | |