Skip to content

Instantly share code, notes, and snippets.

View inkel's full-sized avatar
:shipit:
The floating head with a beard

Leandro López inkel

:shipit:
The floating head with a beard
View GitHub Profile
gem install rabbitmq:1.1.1 typhoeus:0.7.2
ERROR: Error installing rabbitmq:
ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150724-9-b8aeus.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes

Using the following Dockerfile:

FROM alpine:3.2

RUN apk update
RUN apk add gcc
RUN apk del --purge gcc

ENTRYPOINT ["sh"]
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage [<general option>] <command>
executing: /usr/local/bin/VBoxManage
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage [<general option>] <command>
@inkel
inkel / .gitignore
Last active August 26, 2015 19:19
Benchmarking Ruby performance in Docker Containers
/*.log
#!/bin/bash
set -e
# Send a private message to someone on slack
# from the command line.
# Print a usage message and exit.
usage(){
local name=$(basename "$0")
#! /usr/bin/env ruby
GC.disable
require "objspace"
FMT = <<STATS.freeze
before %10d
after %10d
----------
@inkel
inkel / podcast.diff
Created April 6, 2016 20:29
Arreglame los h1!
82c82
<
---
>
90c90
< <h1>Cero a la izquierda</h1>
---
> <h1><a href="/podcast/cero_a_la_izquierda/">Cero a la izquierda</a></h1>
95c95
<
246
9
3
54
237
126
6
3
3
21
#! /usr/bin/env ruby
require "benchmark/ips"
class Foo
attr_accessor :params
def perform(params)
self.params = params