Skip to content

Instantly share code, notes, and snippets.

View rafamanzo's full-sized avatar

Rafael Reggiani Manzo rafamanzo

View GitHub Profile
[2016-10-21 06:47] [PACMAN] Running 'pacman -S -y -u'
[2016-10-21 06:47] [PACMAN] synchronizing package lists
[2016-10-21 06:47] [PACMAN] starting full system upgrade
[2016-10-21 06:51] [ALPM] running '70-dkms-remove.hook'...
[2016-10-21 06:51] [ALPM-SCRIPTLET] ==> dkms remove -m vboxhost -v 5.1.6_OSE -k 4.8.2-1-ARCH
[2016-10-21 06:52] [ALPM] transaction started
[2016-10-21 06:52] [ALPM] upgraded ca-certificates-mozilla (3.26-1 -> 3.27.1-1)
[2016-10-21 06:52] [ALPM] upgraded dbus (1.10.10-3 -> 1.10.12-1)
[2016-10-21 06:52] [ALPM] installed python-docker-pycreds (0.2.1-1)
[2016-10-21 06:52] [ALPM] upgraded python-docker-py (1.9.0-1 -> 1.10.4-1)
@rafamanzo
rafamanzo / test0
Created October 10, 2016 17:29
Random ActionPack test fails
manzo@BURN-E ~/workspace/rails/actionpack (git)-[master] % bundle exec rake
/home/manzo/.rvm/rubies/ruby-2.3.1/bin/ruby -w -I"lib:test" -I"/home/manzo/.rvm/gems/ruby-2.3.1@rails/gems/rake-11.3.0/lib" "/home/manzo/.rvm/gems/ruby-2.3.1@rails/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/controller/redirect_test.rb" "test/controller/renderers_test.rb" "test/controller/resources_test.rb" "test/controller/caching_test.rb" "test/controller/url_for_test.rb" "test/controller/flash_hash_test.rb" "test/controller/parameters/mutators_test.rb" "test/controller/parameters/raise_on_unpermitted_params_test.rb" "test/controller/parameters/log_on_unpermitted_params_test.rb" "test/controller/parameters/serialization_test.rb" "test/controller/parameters/parameters_permit_test.rb" "test/controller/parameters/always_permitted_parameters_test.rb" "test/controller/parameters/accessors_test.rb" "test/controller/parameters/multi_parameter_attributes_test.rb" "test/controller/parameters/nested_parameters_permit_test
Run options: -n test_server_restart --seed 48613
# Running:
/home/manzo/.rvm/gems/ruby-2.3.1@rails/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:202: [BUG] Segmentation fault at 0x00000000000000
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0017 e:000016 CFUNC :release_machine
c:0004 p:0036 s:0014 e:000013 RESCUE /home/manzo/.rvm/gems/ruby-2.3.1@rails/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:202
PLAY [all] *********************************************************************
TASK [setup] *******************************************************************
ok: [media_choice_dev]
TASK [Install dependencies] ****************************************************
changed: [media_choice_dev] => (item=[u'curl', u'git', u'apache2', u'acl'])
TASK [rvm_io.rvm1-ruby : Detect rvm binary] ************************************
ok: [media_choice_dev]
INFO global: Vagrant version: 1.8.5
INFO global: Ruby version: 2.2.4
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_LESS_TERMCAP_se="\e[0m"
INFO global: VAGRANT_OLD_ENV__system_version="libc-2.23"
INFO global: VAGRANT_OLD_ENV_rvm_only_path_flag=""
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.5/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_PERL5LIB="/home/manzo/perl5/lib/perl5"
INFO global: VAGRANT_OLD_ENV_rvm_alias_expanded=""
INFO global: VAGRANT_OLD_ENV_TERMINATOR_UUID="urn:uuid:22c53b34-a901-45da-9049-d7a1da45c443"
@rafamanzo
rafamanzo / fix_gcc_visibility_check.patch
Created May 14, 2016 14:43
Fixes VTK 7.0.0 compilation with GCC 6.1.1
Index: CMake/GenerateExportHeader.cmake
===================================================================
--- a/CMake/GenerateExportHeader.cmake
+++ b/CMake/GenerateExportHeader.cmake
@@ -163,19 +163,7 @@ endmacro()
macro(_test_compiler_hidden_visibility)
if(CMAKE_COMPILER_IS_GNUCXX)
- execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version
- OUTPUT_VARIABLE _gcc_version_info
From 6f64ec659606342193256e3b43c1f25687ff0f54 Mon Sep 17 00:00:00 2001
From: Rafael Reggiani Manzo <[email protected]>
Date: Sun, 7 Feb 2016 09:33:44 -0200
Subject: [PATCH] Add compatibility for both sprockets 2 and 3
Compatibility with Rails 4.1 (and so sprockets 2) is still a
requirement. So sprockets 3 specific code have been conditionalized
keeping both versions compatible and thus allowing Rails 5 usage.
---
Gemfile | 2 +-
cmake_minimum_required(VERSION 3.0)
project (Test)
add_definitions("-Wall -pedantic -std=c++11 -g")
enable_testing()
find_package(Boost 1.59.0 REQUIRED)
include_directories(${Boost_INCLUDE_DIRS} FakeIt-master/include FakeIt-master/config/boost)
@rafamanzo
rafamanzo / error.txt
Last active October 5, 2015 22:45
Mock PBR Bug
python setup.py test (env: mock_pbr_bug)
Installed /home/manzo/workspace/mock_pbr_bug/.eggs/pbr-1.8.0-py3.5.egg
running test
Searching for mock>=1.0.1
Reading https://pypi.python.org/simple/mock/
Best match: mock 1.3.0
Downloading https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz#md5=73ee8a4afb3ff4da1b4afa287f39fdeb
Processing mock-1.3.0.tar.gz
Writing /tmp/easy_install-wkszibq2/mock-1.3.0/setup.cfg
@rafamanzo
rafamanzo / updater.rb
Created August 31, 2015 15:47
Updates gems. WIP
#!/usr/bin/env ruby
GEM_LINE_BEGINNING = " * "
def git_commit(current_gem_name)
puts "\tCommiting"
system("git commit -am \"Auto updated: #{current_gem_name}\" &> /dev/null")
end
def git_reset