Skip to content

Instantly share code, notes, and snippets.

View rafamanzo's full-sized avatar

Rafael Reggiani Manzo rafamanzo

View GitHub Profile
#!/bin/bash
# Dirty script to build Unity under ArchLinux
# Thanks for PKGBUILDs, chenxiaolong!
# Valdos Sine <fat0troll at riseup dot net> 2012
# Pratik Sinha <pratik at humbug dot in> 2012
echo "Run it in directory which will be build root ;)"
echo "Make sure you're have sudo without password or you will stuck in every package installation"
echo "GO!"
sudo pacman -Sy
@rafamanzo
rafamanzo / AUTHORS
Last active July 3, 2021 04:05
Installing the Kalibro Web Service on Ubuntu
Daniel Quadros Miranda
Diego Araújo Martinez
Heitor Reis Ribeiro
Pedro Scocco
Rafael Reggiani Manzo
@rafamanzo
rafamanzo / install-gatekeeper.sh
Last active August 29, 2015 13:57
Kalibro Gatekeeper Installation
#!/bin/bash
git clone https://github.com/mezuro/kalibro_gatekeeper.git
cd kalibro_gatekeeper
cp config/database.yml.sample config/database.yml
export BUNDLE_GEMFILE=$PWD/Gemfile
bundle install
CREATE ROLE kalibro LOGIN ENCRYPTED PASSWORD 'kalibro' VALID UNTIL 'infinity';
CREATE DATABASE kalibro WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1 TEMPLATE=template0;
CREATE DATABASE kalibro_test WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1 TEMPLATE=template0;
@rafamanzo
rafamanzo / CMakeLists.txt
Last active December 18, 2018 04:28
Example on how to read and write NIfTI images using ITK
cmake_minimum_required(VERSION 3.0)
project(ITKNIfTI)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
add_executable(itk_nifti main.cxx)
target_link_libraries(itk_nifti ${ITK_LIBRARIES})
@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
@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
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)
From 6f64ec659606342193256e3b43c1f25687ff0f54 Mon Sep 17 00:00:00 2001
From: Rafael Reggiani Manzo <rr.manzo@gmail.com>
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 +-
@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