Skip to content

Instantly share code, notes, and snippets.

View schmurfy's full-sized avatar
:octocat:

Julien Ammous schmurfy

:octocat:
View GitHub Profile
@schmurfy
schmurfy / msgpack.cs
Created July 31, 2017 09:18
Messgapack issue
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MessagePack;
using MessagePack.Formatters;
using MessagePack.Resolvers;
namespace X2Tests
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
** 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
@schmurfy
schmurfy / influxdb_cmdline.json
Last active November 25, 2016 12:15
influxb_issue_regex
{
"results": [
{
"series": [
{
"name": "alerts",
"tags": {
"app_name": "mountpoints",
"host": "myhost",
"id": "",
@schmurfy
schmurfy / error
Created July 12, 2016 14:53
error
* 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
@schmurfy
schmurfy / sqlite.rb
Created August 29, 2013 14:04
in memory DB
require 'active_record'
require 'sqlite3'
ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3',
:database => ':memory:'
)
ActiveRecord::Base.connection.instance_eval do
@schmurfy
schmurfy / app.rb
Last active December 21, 2015 04:19
scorched issue
require 'scorched'
class AppBase < Scorched::Controller
get('/1'){ render 'one' }
end
class App < AppBase
get('/2'){ render 'two' }
end
@schmurfy
schmurfy / Gemfile
Last active December 20, 2015 03:09
rails_inheritance_issue
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'
require 'rubygems'
require 'bundler/setup'
require 'celluloid'
require 'celluloid/monitoring'
require 'celluloid/autostart'
class SpyMaster
include Celluloid
#!/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'