DISCLAIMER: this guide works for SDK version 1.7.2. If you have another version, verify file/URL names in the following.
This file contains hidden or 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
# ASCII COLOR SEQUENCES: \[\033[***m\] where *** is one of the following codes: | |
# Black 0;30 Dark Gray 1;30 | |
# Blue 0;34 Light Blue 1;34 | |
# Green 0;32 Light Green 1;32 | |
# Cyan 0;36 Light Cyan 1;36 | |
# Red 0;31 Light Red 1;31 | |
# Purple 0;35 Light Purple 1;35 | |
# Brown 0;33 Yellow 1;33 | |
# Light Gray 0;37 White 1;37 | |
HL_CLR="\[\033[1;32m\]" |
This file contains hidden or 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
// | |
// main.c | |
// segv_capture | |
// | |
// Created by Paolo Bosetti on 10/02/16. | |
// Copyright © 2016 UniTN. All rights reserved. | |
// | |
#include <setjmp.h> | |
#include <signal.h> |
This file contains hidden or 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 | |
require 'fileutils' | |
include FileUtils | |
# This scripts tries to show why it is preferable to only use local include | |
# commands (#include "") within public headers of mruby when they include each | |
# other. | |
# To test it, first run this script with no arguments (it will stop on | |
# compilation), then with the `proposal` argument, which uses as mruby source | |
# the relative pull request. | |
# Note that the pull request does not alter in any way how users will have to |
This file contains hidden or 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
/***************************************************************************/ | |
/* */ | |
/* play.c - mruby testing */ | |
/* Copyright (C) 2015 Paolo Bosetti and Matteo Ragni, */ | |
/* paolo[dot]bosetti[at]unitn.it and matteo[dot]ragni[at]unitn.it */ | |
/* Department of Industrial Engineering, University of Trento */ | |
/* */ | |
/* This library is free software. You can redistribute it and/or */ | |
/* modify it under the terms of the GNU GENERAL PUBLIC LICENSE 2.0. */ | |
/* */ |
Before installing the Mechatronix package, install the following dependencies:
sudo apt-get install libyaml-0-2 libyaml-dev
sudo apt-get install libreadline6 libreadline6-dev libreadline-dev readline-common
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install libblas3 libblas-dev libopenblas-base libopenblas-dev
sudo apt-get install liblapack3 liblapack-dev
This file contains hidden or 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
#!/bin/bash | |
RUBY_BASE=2.2 | |
RUBY_TGZ=ruby-2.2.0 | |
echo | |
echo "************************************" | |
echo "Updating package list" | |
if ! sudo apt-get update; then | |
echo "Could not update package list" | |
exit $? |
This file contains hidden or 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
// | |
// main.c | |
// timeout | |
// | |
// Created by Paolo Bosetti on 04/06/14. | |
// Copyright (c) 2014 UniTN. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <signal.h> |
This file contains hidden or 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 mruby | |
# Dataset, Container and self.dataset are a minimal set of prerequisites that | |
# we extrapolated from our application, in order to replicate the bug | |
class Container | |
attr_accessor :key_converter, :match | |
attr_reader :hsh | |
def initialize | |
@hsh= Hash.new |
This file contains hidden or 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
#!/bin/sh | |
if [[ $EUID -ne 0 ]]; then | |
echo 1>&2 | |
echo 1>&2 | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 1>&2 | |
echo "! This script must be run as root! !" 1>&2 | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 1>&2 | |
echo | |
exit 1 | |
fi |